Shunze ¾Ç¶é >¹q¸£¸ê°T¾Ç¨t >OpenNMS > ¡m¤C¡n«Ø¥ß²Ä¤T¤èª«¥ónode-level data collect «¢Å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¤èª«¥ónode-level data collect¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¦b¤W¤@½g «Ø¥ß²Ä¤T¤èª«¥óªºTrap Event Notice ¤¤¡A§Ú­Ìª¾¹D³z¹L¤W¶Ç¤Î½sĶ²Ä¤T¤èª«¥ó«á¡A
¥i¥HÅýOpenNMSÃѧO¸Óª«¥ó©Ò¶Ç¨Óªºtrap notice¡C

°£¤Ftrap notice¥~¡A½sĶ¹Lªº²Ä¤T¤èª«¥óÁÙ¥i¥H¦bOpenNMS¤¤¡A²£¥Ídata collect¡A
ÅýOpenNMS¤]¯à¥hŪ¨ú²Ä¤T¤èª«¥ó©Ò´£¨ÑªºMIB¬d¸ß¸ê°T¡C


­º¥ý¡A¦bMIB Compiler¤¤¹ï­è¤W¶Ç¨Ã¤w¦¨¥\½sĶ¹LMIB«ö¥kÁä¡A²£¥Ídata collect¡C



¦bData Collection²Ä¤@­Ó­¶ÅÒResource Types¤¤¡A¨Ï¥ÎªÌ­Y¦³»Ý­n«Ø¥ßªº¯S®í¸ê·½¥i¦b¦¹«Ø¥ß¡C



¤°»ò¼Ëªº¸ê®Æ«¬ºA¥²»Ý¦b¦¹­¶ÅÒ¤¤«Ø¥ßresoures¡H
°Ñ¦Ò Collecting SNMP data from tables with arbitrary indexes ³o­Óºô­¶¡Aµo²{­YMIBªº¸ê®Æ«¬ºA¤¤¨Ã¤£¬O³æ¯Âªº¼Æ¦r©Î¦r¦êµ¥°ò¥»«¬ºA¡A
¦Ó¬O°}¦C©Îªí®æ¤Æ¸ê®Æ¡A³o®É­Ô´N¥i¥H«Ø¥ß­Ó§Oªºresource type¡C
¥HCyberoam¨Ó»¡¡AMIB¶Ç¨Ó³£¬O°ò¥»«¬ºA¡A©Ò¥H¤£»Ý­n¦b¦¹­¶ÅÒ¤¤«Ø¥ß­Ó§Oªºresource¡C


¦bData Collection²Ä¤G­Ó­¶ÅÒMIB Groups¤¤¡AOpenNMS·|¦Û°Ê§âMIBùتºª«¥ó¸ê°T«Ø¥ß©ó¦¹¡C



°ò¥»¤W³o­Ó­¶ÅÒùتºª«¥ó¤º®e¨Ã¤£»Ý­n­×§ï¡A
³æ¯Â¼Æ¦r©Î¦r¦ê«¬ºAªº ifType ¬° ignore¡A¨ä instance «h¬° 0¡C

¦ý­YMIBª«¥ó¸ê°T¶Ç¨Óªº¬O°}¦C©Îªí®æ¤Æ¸ê®Æ¡A
¨º»ò§Ú­Ì´N¥²»Ý¦b¦¹­×§ï¨ä instance¡A¨Ã¹ïÀ³¨ìResource Type¤¤ªº name¡A¨âªÌ¥²»Ý¤@­P¡A¬Û¤¬©IÀ³¡C
¦¹¥~ ifType ¥²»Ý³]¬° all¡A¤~¯à±µ¦¬¨ì©Ò¦³ªº¸ê®Æ¡C


¦ÓData Collection²Ä¤T­Ó­¶ÅÒ«h¬O©w¸qSystem Definitions¡C
²³æ¤@ÂIªº»¡ªk¡A´N©w¸q­þ¨ÇOID­n¤Þ¥Î³o­Ódata collect¡C
³o³¡¤À¹w³]¬O¨S¦³¥ô¦ó³]©w¡A§Ú­Ì¥²»Ý¦Û¦æ©w¸q¡AÅýOpenNMSª¾¹D­þ¨ÇOID­n¤Þ¥Î¦¹data collect¡C



Group Name¥i¨Ì³ß¦n¦Û¦æ¿é¤J¡A
¦ÓSystem OIDªº³¡¤À¡A¥´¤W²Ä¤T¤èª«¥óªºOID¡C
¥HCyberoam¨Ó»¡¡A¨äOID¬O .1.3.6.1.4.1.21067.2¡A
µM«á¿ï¾Ü Mask ·N¨ýnodeªºOID¤¤¦³¬Û²ÅªºOID§Y±Ä¥Î¦¹data collectª«¥ó¡C
³Ì«á¦A§â§Ú­Ì­n¦¬¶°ªºGroup¶i¦æ¤Ä¿ï¡A²¾¨ìSelected°Ï°ì¡A«ö¤USave´N§¹¦¨Åo¡ã



§¹¦¨System Definitions«á¡A¦A«ö¤USave Data Collection File¡A²Ä¤T¤èª«¥óªºdata collect¥\¯àªº¹ê²{´N¥u®t¤@¨BÅo¡I






§¹¦¨data collectªº³]©w«á¡A¦^¨ìMIB Compiler·|¦³°T®§´£¥Ü¡A
¥]¬ASystem Definitions¤w¸g«Ø¥ß¡ACYBEROAM-MIB.xml¤w¸gÀx¦s¡AGraph template CYBEROAM-MIB-graph.properties ¤w¸g«Ø¥ßµ¥°T®§¡C
¦ý½Ðª`·N¾ï¦âWARN¨º¤@¦æ¡A¨t²Î´£¿ô§Ú­Ì­n§ó·sdatacollection-config.xml³o­ÓÀɮסA§â­è¤~«Ø¥ßªºCYBEROAM-MIB.xml¥[¶i¥h¡C



³o­Ó³¡¤À±z¥i¥H¤â°Ê½s¿è /usr/share/opennms/etc/datacollection-config.xml Àɮרӭקï¡A
¤]¥i¥H³z¹LWeb UI¨Ó§¹¦¨¡A¤èªk¦p¤U¡C



datacollection-config.xml¤¤¹w³]¦³¨â­ÓSNMP Collection Name¡A½ÐÂI default ³o­Ó¶µ¥Ø¶i¦æ½s¿è¡C



µM«á¦bInclude Collections³o­Ó°Ï¶ô¤¤¡A§â§Ú­Ì·s«ØªºCYBEROAM-MIB¥[¶i¥h¡C





¥[¶i¥h«á¡A¦A§â SNMP Storage Flag ¥Ñ select §ï¬° all¡C
§ï¬° all ªº²z¥Ñ¬O select ¹w³]¥u·|¦¬¶°interface¬ÛÃöªº¼Æ¾Ú¡A¥B»P¸Ó¶µ¥Øªºcollect¿ï¥Î»P§_¦³Ãö¡C
¦Ónode-levelªº¸ê®Æ¬O¤£³Q¦¬¶°ªº¡A©Ò¥H­n§ï¬° all ¤~¯à§â»PinterfaceµLÃöªºnode-level¼Æ¾Ú¶i¦æ¦¬¶°¡C



§¹¦¨«á·|¥X²{¤@­Óµu¼Èªº´£¥Üµe­±¡A­n§Ú­Ì§âcollectd-configuration.xmlªº¶¡¹j½Õ¾ã¬°300¬í¡H
(¹w³]´N¬O300¬í°Ú¡H»¡¯uªº§Ú¤£À´³o­Ó´£¥Üªº¥Î·N...)



¼Ò²Õ¤ÆªºOpenNMS¨ä©Ò¦³ª«¥óªºMIB xmlÀɲΤ@¦¬¿ý¦b¥H¤U¸ô®|¤¤¡A¦U¦ÛªºMIB¦Û¦¨¤@­ÓÀÉ®×»P§Oªº¼Ò²ÕµLÃö¡C

/usr/share/opennms/etc/datacollect/

­Y¤£²ßºD¥¦ªºWeb UI¾Þ§@¡A±z¤]¥i¥Hª½±µ­×§ï¦¹xml¨Ó§¹¦¨¡C


©Ò¦³¤u§@§¹¦¨«á¡AÅý¥¦¶]­Ó5¤ÀÄÁ¡A
¦b¥H¤U¦s©ñRRDø¹Ï¸ê®Æªº¸ô®|¤¤¡AÀ³¸Ó´N¥i¥H¬Ý¨ì¸Ónodeªºnode-level data collect¸ê®Æ¥X²{¤F¡I
/usr/share/opennms/share/rrd/snmp/[Node_Number]/


¡ôÂŦ⪺¸ê®Æ§¨¬Ointerface-level©Ò¨Ï¥Î¡A¤@­Óinterface´N¬O¤@­Ó¸ê®Æ§¨¡F
¦Ó¥Õ¦âªºnode-level¸ê®Æ«h¤£©ñ¦b¤l¸ê®Æ§¨¤¤¡A¨âªÌ«Ü®e©ö¿ëÃÑ¡C


Node-level¸ê®Æ¶}©l¦¬¶°«á¡AResource GraphsùتºNode-level Performance Data´N·|¦³¹ïÀ³resourceªºMRTG¬y¶q¹Ï²£¥Í¤F¡ã





²Ä¤T¤èª«¥óªºnode-level data collectÁ`ºâ§¹¦¨¡I

(³o³¡¤À¥d¤F§Ú¾ã¾ã¤@­Ó¶gªº®É¶¡¡A±µ¤U¨Ó±N¤À¨É¶¶¤l¥dÃöªº¦a¤èµ¹¤j®a°Ñ¦Ò¡ã)



♥¶¶¤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-25, 21:03 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
shunze
¤u¤Í§B§B


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

shunze Â÷½u
¡m¤À¨É¡n¥dÃö¤@¶gªºÃöÁä°ÝÃD¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¶¶¤l¦b´ú¸Õnode-level data collect¥dÃö¥d¤F¤@¶g¡A
¤§¶¡¤ñ¸û¹LOpenNMS¤º«Ø¤ä´©ªºCisco¡BExtreme¡BFortinate¡BF5µ¥¼Ò²Õ¡A
¸Õ¹L¦UºØ¥i¯à©Êªº½Õ¾ã¡A©l²×µLªk±o¨ìnode-levelªº¬y¶q¹Ï¡C
¦b /usr/share/opennms/share/rrd/snmp/[Node_Number] ùØ¡A¤]¤£¨£¦³¥ô¦ónode-level¼h¯Åªº¸ê®Æ²£¥Í¡C

¥dÃöªº¦a¤è¦b©óSystem Definitionsªº System OID ³]©w¡C
¤ñ¸û¹L¤º«ØªºCisco¡BExtreme¡BFortinate¡BF5µ¥¼Ò²Õ¡Aµo²{¤j³¡¤À³£¬O¥H .1.3.6.1.4.1.XXXX.y. ªº«¬¦¡¨Ó¶ñ¤J¡A
¥u¦³³¡¤À´X­ÓciscoªºSystem OID¬O¥H .1.3.6.1.4.1.XXXX.y ªº«¬¦¡¨Ó¶ñ¤J¡C
¨âªÌªº®t§O¶È¦b©ó³Ì«á­±¨º­Ó .¡I
¦Ó¥Bµ´¤j¦h¼Æ³£¦³¨º­Ó ¡§.¡¨¡A©Ò¥H¦b´úCyberoam®É¡A¦ÛµM¤]´N¥H .1.3.6.1.4.1.21067.2. ªº«¬¦¡¨Ó¶ñ¼g¡C

<sysoidMask>.1.3.6.1.4.1.21067.2.</sysoidMask>


¥dÃö¤F¡A«ç»ò·Q¤]·Q¤£¨ì©~µM¸ò¨º­Ó ¡§.¡¨ ¦³Ãö¡H
¦b·Ð´eªº±¡ºü¤¤¡A¤£Â_ªº­×§ï»P´ú¸Õ...
¦b¬Y¤@¦¸ªº´ú¸Õ¤¤¡A¬ðµMµo²{¦³¸ê®Æ¤F¡I¡H
»°ºò§â³]©wÀɳƥ÷¤U¨Ó¡A¥ý«O¯d²{³õ¦A»¡¡I

³v¤@­×§ï¤ñ¹ï«á¡A©~µM¥dÃö¬O¥d¦b¨º­Ó ¡§.¡¨¡I¡H
¥u­n¤Ö¤F¨º­Ó ¡§.¡¨¡Anode-levelªº¸ê®Æ´N¥i¥H¦¨¥\¦¬¶°¡C
<sysoidMask>.1.3.6.1.4.1.21067.2</sysoidMask>

³o­Ó ¡§.¡¨¡A¯u¬OÅý¤H¥dÃö¥dªº¦n¤ß»Ä...





¨º»ò¡A
System OID³Ì«á­±¨s³º­n¤£­n±a¨º­Ó ¡§.¡¨¡H
»¡¯uªº¡A§Ú¤]¤£ª¾¹D...

­Y§A¸ò¶¶¤l¤@¼Ë¡A³]©w¬Ý¨Ó³£¨S¿ù¡A¦ý´N¬O¨S¦³¸ê®Æ¡A
¤£§«¦b³o­Ó ¡§.¡¨ ¸I¸I¹B®ð¡A°µ­Ó¤ñ¸û´ú¸Õ´Nª¾¹D¤F¡ã



♥¶¶¤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-25, 22:27 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
shunze
¤u¤Í§B§B


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

shunze Â÷½u
¡m¤À¨É¡nsnmpStorageFlag§ï¬°all«áªº¼vÅT¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¦b¥»½g°Q½×¤¤¡A¬°¤F¯à°÷¦¬¨ìnode-levelªº¸ê®Æ¡A
¶¶¤l§âdatacollection-config.xmlùتº snmpStorageFlag °Ñ¼Æ¥Ñ select ½Õ¾ã¬° all¡C

­ì¥»interfaceªºdata collect¥iÂÇ¥Ñ Collect / Don't Collect ¦Û¦æ½Õ¾ã¬O§_­n¦¬¶°¦¹¶µ¥Øªº¸ê®Æ¡C



µM¦Ó¦b½Õ¾ã¬° all ¤§«á¡A¤£¶È¬Onode-levelªº¸ê®Æ·|³Q¦¬¶°¡A³s©Ò¦³interfaceªº¸ê®Æ¤]³£·|³Q±j­¢¦¬¶°¡I
Collect / Don't Collect ªº³]©w¦b¹ïÀ³ all ®É¡A¨ä®ÄªG·|³Q©¿²¤¡C




©Ò¦³¸ê®Æ³£·|³Q±j­¢¦¬¶°¡H¨º¸ê®Æ·|¦¨ªøªº«Ü§Ö¶Ü¡H

¹ê»Ú¤ñ¸û¹L /usr/share/opennms/share/rrd/snmp/[Node_Number] ¸ô®|¤UªºRRD¸ê®Æ¡A
µo²{¨C­Ó¶µ¥Ø©Ò¤Þ¥Îªº¨â­ÓÀÉ®× jrb »P meta ¦ü¥G¬Oºû«ù¦b©T©w¤j¤p¡A
¬Ý¨Ó¬O¤£·|¿±µÈ¦¨ªø¡C

¤£¹L¡A¤]§ä¤£¨ì¨ä¥¦¤è¦¡¨Ó½Õ¾ã¸ê®Æ¶µ¥Øªº¦¬¶°»P§_¡C
­n¤Þ¥Înode-levelªºdata collect¡A¬Ý¨Ó¥u¦³±µ¨ü¡§¥þ³¡¦¬¶°¡¨³o¼Ëªº¨Æ¹ê¤F...



♥¶¶¤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-26, 14:41 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