cacti snmp index output error!

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
cnlg
Posts: 13
Joined: Wed Jul 27, 2005 9:26 pm

cacti snmp index output error!

Post by cnlg »

Since my company have some RedBack se800 system, i need to monitor it's ippool status, so i make a indexed snmp query to monitor them, but i follow a error as below:


[root@log snmp_queries]# snmpwalk command line results:
snmpwalk -c public -v 2c myse800 .1.3.6.1.4.1.2352.2.15.1.1.1
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.3.268435460.125.40.216.0 = STRING: "dial-01"
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.3.268566531.123.4.4.0 = STRING: "dial-02"
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.3.268566532.123.8.100.0 = STRING: "dial-03"
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.4.268435460.125.40.216.0 = IpAddress: 255.255.252.0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.4.268566531.123.4.4.0 = IpAddress: 255.255.252.0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.4.268566532.123.8.100.0 = IpAddress: 255.255.252.0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.5.268435460.125.40.216.0 = Gauge32: 1024
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.5.268566531.123.4.4.0 = Gauge32: 1024
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.5.268566532.123.8.100.0 = Gauge32: 1024
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.6.268435460.125.40.216.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.6.268566531.123.4.4.0 = Gauge32: 947
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.6.268566532.123.8.100.0 = Gauge32: 1021
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.7.268435460.125.40.216.0 = Gauge32: 3
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.7.268566531.123.4.4.0 = Gauge32: 3
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.7.268566532.123.8.100.0 = Gauge32: 3
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.8.268435460.125.40.216.0 = Gauge32: 1021
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.8.268566531.123.4.4.0 = Gauge32: 74
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.8.268566532.123.8.100.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.9.268435460.125.40.216.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.9.268566531.123.4.4.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.9.268566532.123.8.100.0 = Gauge32: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.10.268435460.125.40.216.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.10.268566531.123.4.4.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.10.268566532.123.8.100.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.11.268435460.125.40.216.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.11.268566531.123.4.4.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.11.268566532.123.8.100.0 = INTEGER: 2
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.12.268435460.125.40.216.0 = ""
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.12.268566531.123.4.4.0 = ""
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.12.268566532.123.8.100.0 = ""
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.13.268435460.125.40.216.0 = INTEGER: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.13.268566531.123.4.4.0 = INTEGER: 0
SNMPv2-SMI::enterprises.2352.2.15.1.1.1.13.268566532.123.8.100.0 = INTEGER: 0
but the cacti data debug information are:
Data Query Debug Information
+ Running data query [21].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/redback_ippool.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.2352.2.15.1.1.1.3'
+ Located input field 'rbnIpPoolInterfaceName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.2352.2.15.1.1.1.3'
+ Found item [rbnIpPoolInterfaceName='dial-01'] index: 0 [from value]
+ Found item [rbnIpPoolInterfaceName='dial-02'] index: 0 [from value]
+ Found item [rbnIpPoolInterfaceName='dial-03'] index: 0 [from value]
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/redback_ippool.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/redback_ippool.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/redback_ippool.xml'
from the command line result we could see that the index string should be
268435460.125.40.216.0
268566531.123.4.4.0
268566532.123.8.100.0
but cacti only read the last "0", any one knows how to resolve this?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You will have to use an OID/REGEXP to catch those indices. Find help at first link o my signature (but you have to scroll to the correct topic, it's at the end ...)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests