¡m¤À¨É¡n«Ø¥ß²Ä¤T¤èª«¥óªºTrap Event Notice | |
¦bOpenNMS¤W¤º«Ø¤F¦hºØOS»Pºô³q³]³ÆºÞ²z®É©Ò»ÝªºMIBs¸ê®Æ¡A
OpenNMS¥iÂǥѳo¨Ç¸ê°T¨Ó¸ÑªRª«¥ó©Òµo¥Xªºtrap notice¡A¶i¦Ó³qª¾ºÞ²zû¸Óª«¥ó¦³ª¬ªpµo¥Í¡C
¦ýYª«¥ó¥»¨¨S¦³³QOpenNMS¤ä´©¡AOpenNMSùبS¦³ª«¥óªºMIB®É¡A¦p¦óÅýOpenNMSÃѧO³o¨Çª«¥ó©O¡H
¥H«³·ç¥N²zªº¨¾¤õÀðCyberoam¬°¨Ò¡A¦bOpenNMS¤W´N¤£¤ä´©¡C
ÁöµMOpenNMSµLªkÃѧO¥¦¡A¤£¹L§ÚÌ¥i¥H³z¹L¦bCyberoam©xºô¤U¸üCyberoamªºMIBÀɮסA
µM«á§âMIBÁýµ¹OpenNMS¡AÅýOpenNMS¦³¨¬°÷¯à¤O¥h¸ÑªR³o¨Ç¸ê°T¡C
¦bCyberoam¤¤³]©w¦nSNMP²ÕºA«á¡A¦^¨ìOpenNMS¡A
§ÚÌ¥i¥H³z¹L SNMP MIB Compiler ¥\¯à¤â°Ê¶×¤J²Ä¤T¤èª«¥óªºMIBÀɨӶi¦æ½sĶ¡AÅýOpenNMS¯à°÷¸ÑªR¥¦¡C
¦bMIB Compiler¶±¤¤¡A«ö¤U Upload MIB «ö¶s¡A¤W¶Çè¤~¤U¸üªºCyberoam MIBÀÉ¡C
¤W¶Ç«áªºMIBÀÉ·|¥X²{¦bpending°Ï°ì¤¤¡A«ö¤U¥kÁäCompile½sĶ³oÓª«¥ó¡C
±qCyberoam©xºô¤U¸üªºMIBÀÉ¡A¦b½sĶ®É·|«ü¥X²Ä387¦æ¦³¿ù»~¡I¡H
§â¥¦±q DataBaseService OBJECT-TYPE §ï¬°«á databaseService OBJECT-TYPE ²Å¦XOpenNMSªº³W½d«á¡A¦A½sĶ¤@¦¸´N¤£·|³ø¿ù¤F¡C
*ª`·N¡A½sĶ®É»Ýn¥¿½TµL»~ªºMIB¸ê°T¡AOpenNMS¤~¯à§¹¦¨¸ÓMIBÀɪº½sĶ¡C
½sĶ§¹¦¨«á¡A¸Óª«¥ó·|²¾¨ìcompiled¤w½sĶ°Ï°ì¡F
³o®É¡A§ÚÌ¥i«ö¤U¥kÁäGenerate Events¨Ó«Ø¥ßMIBÀɤ¤©Ò©w¸qªº¨Æ¥óevent¡C
«Ø¥ßevent®É¡Aº¥ý·|²£¥Í³oÓª«¥óªºUEI¡C
±µµÛ¦b¨Æ¥óµe±¤¤¡A«ö¤Usave Events File«ö¶s¡A´N¥i¥H«Ø¥ß¦nª«¥óMIB¤¤©Ò¦³ªºevents¡C
§¹¦¨«á¡A¦bSNMP MIB Complier¤¤·|Åã¥Üè¤~§¹¦¨ªº¤º®e¡A
¥]§t½sĶ«á©Ò²£¥Íªºª«¥óeventªºXMLÀɮ׸ô®|¡C
(°ò¥»¤W©Ò¦³ª«¥óªºevent XMLÀɳ£·|©ñ¸m¦b /usr/share/opennms/etc/events/ ¸ô®|¤U¡C)
²Ä¤T¤èª«¥óªºMIB¦¨¥\½sĶ«á¡A쥻EventsùØ©Ò¨S¦³ªº²Ä¤T¤èª«¥ó¬ÛÃöevent¡A´N·|¥X²{¤F¡I
²Ä¤T¤èª«¥óevents²£¥Í«á¡A¦^¨ìEvent Notifications¤¤¡A«Ø¥ß¤@Ó¸Óª«¥óªº¨Æ¥ó³qª¾§a¡ã
¦bCyberoamªºMIB¤¤¡A¦³©w¸q highCpuUsage ³oÓCPU ¨Ï¥Î²v¹L°ªªºtrap event¡D
°²³]§ÚÌ·Q³z¹LCyberoamªºtrap notice¨Ó¥D°Êµo°e³oÓCPU¨Ï¥Î²v¹L°ªªºtrap event¡A
§ÚÌ¥i¥HÂI¿ï highCpuUsage ³oÓtrap event¡C
µM«á¦bServices³¡¤À¿ï¾ÜSNMP¡A³o¼Ë´N§¹¦¨³oÓCPU¨Ï¥Î²v¹L°ªªº±ø¥ó³]©w¤F¡C
Y³otrap event¥u»Ýn¹ïÀ³¨ìCyberoamª«¥ó¡A¤£·Q¹ïÀ³¨ì¨ä¥¦nodes¡A
§ÚÌ¥i¥H¦bIPADDRªº±ø¥ó¦¡¤¤¤â°Ê±NIP§ï¬°Cyberoam³oÓnodeªºIP¡C
§¹¦¨«á«ö¤UNext¨ì³Ì«á¤@Ó¶¥¬q...
¦b³Ì«áªº³oÓµe±¤¤¡A§Ú̻ݽs¿è³oӨƥóªºemail³qª¾¤º®e¡A
¥]§t¶l¥ó¥D¦®¡B¤º®e¡Bµo°e¹ï¶H»P´yzµ¥¡C
³oÓ³¡¤À¶¶¤l¬O°Ñ·Ó¥¦¨Æ¥óªº¤º®e¨Ó°µ×§ïªº¡C
§¹¦¨«á¡AEvent Notifications¤¤´N·|¥X²{³oµ§¦Û«ØªºTrap Notice Event¤F¡ã
·í«eºÝCyberoamªºCPU¨Ï¥Î²v¹L°ª¡A¹F¨ìCyberoam¥»¨³]©wªº±ø¥ó¡A´N·|IJµotrap¾÷¨î¡A°e¥Xtrap noticeµ¹«ü©wªºSNMP Server¡C
¦bOpenNMSÁÙ¨S¦³½sĶCyberoamªºMIB¡AµLªk¸ÑĶCyberoam¶Ç¨ÓªºOID·N¸q®É¡A
OpenNMS§e²{¥X¨Óªº¡A·|¬OOIDªº¼Æ¦r¡C
¤@¥¹¦bOpenNMS½sĶ¹LCyberoamªºMIB«á¡AOpenNMS´N¯à§¹¬ü¸ÑŪ¸Ótrapªº·N¸q¡C
¦Ó§ÚÌ©Ò³]©wªºevent notification¤]´N¯àµo´§§@¥Î¡A¦¨¥\³z¹Lemail³qª¾ºÞ²zû¦³ª¬ªpµo¥Í¡C
¤£¹L¡A¥H¤WOpenNMS event¤ÎemailÂ^¹Ï¡A¬O¶¶¤l¼ÒÀÀ²£¥Í¥X¨Óªº¡A
¨Ã¤£¬O¦b´ú¸ÕÀô¹Ò¤¤¡A¯u¥¿²£¥Íªºµ²ªG¡C
¦bLinux¤W²£¥ÍSNMP Trapªº«ü¥O¦p¤U¡C
snmptrap -v 2c -c public <SNMP_Server_IP> "" .1.3.6.1.4.1.21067.2.1.4.1 .1.3.6.1.4.1.21067.2.1.4.1 s "100% cpu usage"
¤§©Ò¥H±Ä¥Î¼ÒÀÀªº¤è¦¡¦Ó¤£¬OÅýCyberoam²£¥Í¯u¥¿ªºCPU trap event¡A
¨º¬O¦]¬°CyberoamªºCPU high usage trap event§PÂ_±ø¥ó¬Û·íÄYV¡I
n³sÄò25¤ÀÄÁCPUªº¨Ï¥Î²v³£¹F95%¥H¤W¤~·|IJµo¸Ótrap¾÷¨î¡A
°£«D«ùÄòªº³Q§ðÀ»¡A§_«h«ÜÃø¦b´ú¸ÕÀô¹Ò¤¤Ä²µo³o¼Ëªºtrap event¡C
¥HLinux¼ÒÀÀ°e¥Xtrap event¡A·N«ä¨ì´N¦n¤F¡A¤j®a´NÄǤF¶¶¤l§a¡ã
°Ñ¦Ò¸ê®Æ
OpenNMS: MIB Management Through the GUI
Windows server Event trap for opennms
♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|