Shunze ¾Ç¶é >¹q¸£¸ê°T¾Ç¨t >OpenNMS > ¡m¤»¡n«Ø¥ß²Ä¤T¤èª«¥óªºTrap Event Notice «¢Åo¡AÁÙ¨S¦³µù¥U©ÎªÌµn¤J¡C½Ð§A[µù¥U|µn¤J]
« ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD » Åã¥Ü¦¨¦C¦L¼Ò¦¡ | ¼W¥[¨ì§Úªº³Ì·R
µoªí·s¥DÃD µoªí¦^ÂÐ
§@ªÌ
¥DÃD
shunze
¤u¤Í§B§B


µù¥U¤é´Á: 2002 04
¨Ó¦Û: ¼é¦Á²×¤î¤§¦a
¤å³¹: 2380

shunze Â÷½u
¡m¤À¨É¡n«Ø¥ß²Ä¤T¤èª«¥óªºTrap Event Notice¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¦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´y­zµ¥¡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Â_±ø¥ó¬Û·íÄY­V¡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!




2015-10-16, 18:21 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
  « ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD »
µoªí·s¥DÃD µoªí¦^ÂÐ
¸õ¨ì:

Powered by: Burning Board 1.1.1 2001 WoltLab GbR