SNMP walk returns:
snmpwalk -v 2c -c xxx xxx 1.3.6.1.2.1.10.18.7.1
RFC1406-MIB::dsx1CurrentIndex.1 = INTEGER: 1
RFC1406-MIB::dsx1CurrentIndex.2 = INTEGER: 2
RFC1406-MIB::dsx1CurrentIndex.3 = INTEGER: 3
RFC1406-MIB::dsx1CurrentIndex.4 = INTEGER: 4
RFC1406-MIB::dsx1CurrentESs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentESs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentESs.3 = Gauge32: 0
RFC1406-MIB::dsx1CurrentESs.4 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSESs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSESs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSESs.3 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSESs.4 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSEFSs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSEFSs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentSEFSs.3 = Gauge32: 878
RFC1406-MIB::dsx1CurrentSEFSs.4 = Gauge32: 862
RFC1406-MIB::dsx1CurrentUASs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentUASs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentUASs.3 = Gauge32: 878
RFC1406-MIB::dsx1CurrentUASs.4 = Gauge32: 862
RFC1406-MIB::dsx1CurrentCSSs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentCSSs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentCSSs.3 = Gauge32: 97
RFC1406-MIB::dsx1CurrentCSSs.4 = Gauge32: 72
RFC1406-MIB::dsx1CurrentPCVs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentPCVs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentPCVs.3 = Gauge32: 0
RFC1406-MIB::dsx1CurrentPCVs.4 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLESs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLESs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLESs.3 = Gauge32: 878
RFC1406-MIB::dsx1CurrentLESs.4 = Gauge32: 862
RFC1406-MIB::dsx1CurrentBESs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentBESs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentBESs.3 = Gauge32: 0
RFC1406-MIB::dsx1CurrentBESs.4 = Gauge32: 0
RFC1406-MIB::dsx1CurrentDMs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentDMs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentDMs.3 = Gauge32: 0
RFC1406-MIB::dsx1CurrentDMs.4 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLCVs.1 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLCVs.2 = Gauge32: 0
RFC1406-MIB::dsx1CurrentLCVs.3 = Gauge32: 255
RFC1406-MIB::dsx1CurrentLCVs.4 = Gauge32: 255
Data Query Debug:
+ Running data query [11].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/combined-int.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.10.18.7.1.1'
+ Located input field 'Index' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.10.18.7.1.1'
+ Found item [Index='1'] index: 1 [from regexp oid parse]
+ Found item [Index='2'] index: 2 [from regexp oid parse]
+ Found item [Index='3'] index: 3 [from regexp oid parse]
+ Found item [Index='4'] index: 4 [from regexp oid parse]
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/combined-int.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/combined-int.xml'
+ Found data query XML file at '/var/www/localhost/htdocs/cacti/resource/snmp_queries/combined-int.xml'
Finally, my XML file:
Code: Select all
<rfc1406cur>
<name>DS1CurrErrors</name>
<description>RFC1406-ds1-curr-interval</description>
<oid_index>.1.3.6.1.2.1.10.18.7.1.1</oid_index>
<oid_index_parse>OID/REGEXP:^.*\.([0-9]+)$</oid_index_parse>
<index_order_type>numeric</index_order_type>
<fields>
<Index>
<name>Index</name>
<method>walk</method>
<source>OID/REGEXP:^.*\.([0-9]+)$</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.1</oid>
</Index>
<CurES>
<name>CurrentES</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.2</oid>
</CurES>
<CurSES>
<name>CurrentSES</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.3</oid>
</CurSES>
<CurSEFS>
<name>CurrentSEFS</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.4</oid>
</CurSEFS>
<CurUAS>
<name>CurrentUAS</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.5</oid>
</CurUAS>
<CurCSS>
<name>CurrentCSS</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.6</oid>
</CurCSS>
<CurPCV>
<name>CurrentPCV</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.7</oid>
</CurPCV>
<CurLESs>
<name>CurrentLESs</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.8</oid>
</CurLESs>
<CurBESs>
<name>CurrentBESs</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.9</oid>
</CurBESs>
<CurDMs>
<name>CurrentDMs</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.10</oid>
</CurDMs>
<CurLCVs>
<name>CurrentLCVs</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.10.18.7.1.11</oid>
</CurLCVs>
</fields>
</rfc1406cur>
P.S. Very nice product, thanks to everyone who had a hand in it