Code: Select all
<interface>
<name>Get SNMP MVTS</name>
<description>SNMP Originator</description>
<oid_index>.1.3.6.1.4.1.999.10.101.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*([0-9]{1,3})$</oid_index_parse>
<index_order>Activ</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<ifIndex>
<name>Name</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.999.10.101.1.2</oid>
</ifIndex>
<ifActiv>
<name>Activ</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.999.10.101.1.10</oid>
</ifActiv>
</fields>
</interface>
Code: Select all
snmpwalk -v 2c -n0 -c <qqqqqq> 127.0.0.1:1161 .1.3.6.1.4.1.999.10.101.1.1
SNMPv2-SMI::enterprises.999.10.101.1.1.26 = INTEGER: 26
SNMPv2-SMI::enterprises.999.10.101.1.1.35 = INTEGER: 35
SNMPv2-SMI::enterprises.999.10.101.1.1.36 = INTEGER: 36
SNMPv2-SMI::enterprises.999.10.101.1.1.37 = INTEGER: 37
SNMPv2-SMI::enterprises.999.10.101.1.1.38 = INTEGER: 38
SNMPv2-SMI::enterprises.999.10.101.1.1.39 = INTEGER: 39
SNMPv2-SMI::enterprises.999.10.101.1.1.40 = INTEGER: 40
SNMPv2-SMI::enterprises.999.10.101.1.1.41 = INTEGER: 41
SNMPv2-SMI::enterprises.999.10.101.1.1.42 = INTEGER: 42
SNMPv2-SMI::enterprises.999.10.101.1.1.43 = INTEGER: 43
SNMPv2-SMI::enterprises.999.10.101.1.1.44 = INTEGER: 44
Code: Select all
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/snmp_mvts.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.999.10.101.1.1.25'
+ No SNMP data returned
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/snmp_mvts.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/snmp_mvts.xml'
+ Found data query XML file at '/usr/local/apache/htdocs/cacti/resource/snmp_queries/snmp_mvts.xml'