I'm sure the answer to this is somewhere, but I'll be damned if I can find it.. I have a Lucent PSAX device that I need to pull stats from. The ifIndex values of the ports have to be retrieved in an odd way, so I'm attempting to use an oid_index_parse method.
Cacti 0.8.7a
A typical snmpwalk is as follows :
Code: Select all
[friz@dataopmgr cacti]$ snmpwalk -v1 -cpublic x.x.x.x .1.3.6.1.4.1.1751.2.18.11.1.1.2
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.101001 = Counter32: 0
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.401001 = Counter32: 12
SNMPv2-SMI::enterprises.1751.2.18.11.1.1.2.501001 = Counter32: 21
Code: Select all
<interface>
<name>Get PSAX Port Stats</name>
<description>Queries a host for a list of monitorable port stats</description>
<oid_index>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,7})$</oid_index_parse>
<index_order_type>numeric</index_order_type>
<fields>
<Port>
<name>Circuit ID SSPPCCC</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid>
</Port>
<InHigh>
<name>Ingress Cells High</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.1751.2.18.11.1.1.2</oid>
</InHigh>
</fields>
</interface>
Code: Select all
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.1751.2.18.11.1.1.2'
+ Located input field 'Port' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.1751.2.18.11.1.1.2'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
+ Found data query XML file at '/usr2/login/cacti/resource/snmp_queries/psax.xml'
Can anyone suggest any further debugging I can do to identify the problem? I'm 99% sure my regex is right, and I've tried to follow all the directions I've found concerning the XML file.
Any help is appreciated!
Thanks,
Jason