I was wondering if someone can give me the right pointers here to configure a data query template xml file which will successfully query SNMP Extended Objects.
I can query without issue the extended objects as per below:
Code: Select all
snmpwalk -v 2c -c <community> -O e <ip.address> NET-SNMP-EXTEND-MIB::nsExtendOutLine
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits".1 = STRING: 52929259
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_size".1 = STRING: 705341648
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_misses".1 = STRING: 15536494
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_name".1 = STRING: storage
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_snap".1 = STRING: 0
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_used".1 = STRING: 3098676621322
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_meta_max".1 = STRING: 606175992
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_meta_used".1 = STRING: 567453904
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_meta_c_max".1 = STRING: 806954598
NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_meta_limit".1 = STRING: 605215948
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_available".1 = STRING: 756842958838
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_data_used".1 = STRING: 3098676621322
NET-SNMP-EXTEND-MIB::nsExtendOutLine."zpool_used_capacity".1 = STRING: 77
Code: Select all
<interface>
<name>Get Extended Objects</name>
<description>Query SNMP Extended Objects</description>
<oid_index>NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits"</oid_index>
<oid_num_indexes>NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits"</oid_num_indexes>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<arc_hits>
<name>arc_hits</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits"</oid>
</arc_hits>
</fields>
</interface>
Code: Select all
Total: 0, Delta: 0, Running data query [9].
Total: 0, Delta: 0, Found type = '3' [SNMP Query].
Total: 0.01, Delta: 0, Found data query XML file at '/usr/share/cacti/resource/snmp_queries/net-snmp_MSA_ExtendedObjects.xml'
Total: 0.01, Delta: 0, XML file parsed ok.
Total: 0.01, Delta: 0.01, Executing SNMP get for num of indexes @ 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits"' Index Count:
Total: 1.01, Delta: 1, Executing SNMP walk for list of indexes @ 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."arc_hits"' Index Count: 0
Total: 1.01, Delta: 0, No SNMP data returned
Total: 1.02, Delta: 0, Update data query sort cache complete
Total: 1.02, Delta: 0, Updated data query index ordering
Total: 2.03, Delta: 1.01, Update re-index cache complete
Total: 2.03, Delta: 0, Update graph data query cache complete
Total: 2.03, Delta: 0, Update data source data query cache complete
Total: 2.03, Delta: 0, Update data query cache complete
Total: 2.03, Delta: 0, Update poller cache from query complete
Total: 2.03, Delta: 0, Automation execute data query complete
Total: 2.03, Delta: 0, Plugin hooks complete