http://docs.cacti.net/manual:088:3a_adv ... alkthrough
The indexes for the part of the MIB I am trying to walk are embedded in the OID itself, necessitating the use of the oid_index_parse field, which I have defined as follows:
Code: Select all
<interface>
<name>panPerfStorageTable</name>
<description>StorageBlade Performance Statistics</description>
<oid_index_parse>OID/REGEXP:^.{30}(.*)</oid_index_parse>
<oid_index>.1.3.6.1.4.1.10159.1.2.2.1.1.1</oid_index>
<fields>
<panHwBladeHwSN>
<name>Index</name>
<method>walk</method>
<source>index</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.10159.1.2.2.1.1.1</oid>
</panHwBladeHwSN>
<panHwBladeName>
<name>Blade Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.10159.1.2.2.1.1.26</oid>
</panHwBladeName>
<panHwBladeType>
<name>Blade Type</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.10159.1.2.2.1.1.2</oid>
</panHwBladeType>
This results in "verbose query" output as follows:
Code: Select all
+ Running data query [10].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/panPerfStorageTable.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.10159.1.2.2.1.1.1' Index Count: 11
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.53.97.51.48.52.98.50.49.48.48.48.50.56.48.48.49' value: '25a304b2100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.52.51.48.97.97.48.49.48.48.48.50.56.48.48.49' value: '26430aa0100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.54.51.49.101.100.53.49.48.48.48.50.56.48.48.49' value: '26631ed5100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.57.51.48.54.48.54.51.48.48.48.50.52.48.48.49' value: '26930606300024001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.98.51.50.49.52.55.49.48.48.48.50.56.48.48.49' value: '26b32147100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.55.97.51.48.48.49.51.49.48.48.48.50.56.48.48.49' value: '27a30013100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.48.52.48.48.48.49.49.48.48.48.50.56.48.48.49' value: '28040001100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.99.49.48.48.48.50.56.48.48.49' value: '2844000c100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.100.49.48.48.48.50.56.48.48.49' value: '2844000d100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.101.49.48.48.48.50.56.48.48.49' value: '2844000e100028001'
+ Index found at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.53.52.48.48.48.98.49.48.48.48.50.56.48.48.49' value: '2854000b100028001'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.53.97.51.48.52.98.50.49.48.48.48.50.56.48.48.49' results: '17.50.53.97.51.48.52.98.50.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.52.51.48.97.97.48.49.48.48.48.50.56.48.48.49' results: '17.50.54.52.51.48.97.97.48.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.54.51.49.101.100.53.49.48.48.48.50.56.48.48.49' results: '17.50.54.54.51.49.101.100.53.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.57.51.48.54.48.54.51.48.48.48.50.52.48.48.49' results: '17.50.54.57.51.48.54.48.54.51.48.48.48.50.52.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.54.98.51.50.49.52.55.49.48.48.48.50.56.48.48.49' results: '17.50.54.98.51.50.49.52.55.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.55.97.51.48.48.49.51.49.48.48.48.50.56.48.48.49' results: '17.50.55.97.51.48.48.49.51.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.48.52.48.48.48.49.49.48.48.48.50.56.48.48.49' results: '17.50.56.48.52.48.48.48.49.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.99.49.48.48.48.50.56.48.48.49' results: '17.50.56.52.52.48.48.48.99.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.100.49.48.48.48.50.56.48.48.49' results: '17.50.56.52.52.48.48.48.100.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.52.52.48.48.48.101.49.48.48.48.50.56.48.48.49' results: '17.50.56.52.52.48.48.48.101.49.48.48.48.50.56.48.48.49'
+ index_parse at OID: '1.3.6.1.4.1.10159.1.2.2.1.1.1.17.50.56.53.52.48.48.48.98.49.48.48.48.50.56.48.48.49' results: '17.50.56.53.52.48.48.48.98.49.48.48.48.50.56.48.48.49'
+ Located input field 'panHwBladeHwSN' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10159.1.2.2.1.1.1'
+ Located input field 'panHwBladeName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10159.1.2.2.1.1.26'
+ Found item [panHwBladeName='Shelf-1,6'] index: .17.50.53.97.51.48.52.98.50.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,10'] index: .17.50.54.52.51.48.97.97.48.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,8'] index: .17.50.54.54.51.49.101.100.53.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,1'] index: .17.50.54.57.51.48.54.48.54.51.48.48.48.50.52.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,5'] index: .17.50.54.98.51.50.49.52.55.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,4'] index: .17.50.55.97.51.48.48.49.51.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,7'] index: .17.50.56.48.52.48.48.48.49.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,3'] index: .17.50.56.52.52.48.48.48.99.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,9'] index: .17.50.56.52.52.48.48.48.100.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,2'] index: .17.50.56.52.52.48.48.48.101.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeName='Shelf-1,11'] index: .17.50.56.53.52.48.48.48.98.49.48.48.48.50.56.48.48.49 [from value]
+ Located input field 'panHwBladeType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.10159.1.2.2.1.1.2'
+ Found item [panHwBladeType='Storage'] index: 17.50.53.97.51.48.52.98.50.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.54.52.51.48.97.97.48.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.54.54.51.49.101.100.53.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Director'] index: 17.50.54.57.51.48.54.48.54.51.48.48.48.50.52.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.54.98.51.50.49.52.55.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.55.97.51.48.48.49.51.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.56.48.52.48.48.48.49.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.56.52.52.48.48.48.99.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.56.52.52.48.48.48.100.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.56.52.52.48.48.48.101.49.48.48.48.50.56.48.48.49 [from value]
+ Found item [panHwBladeType='Storage'] index: 17.50.56.53.52.48.48.48.98.49.48.48.48.50.56.48.48.49 [from value]
So, yeah....a couple of things are amiss:
1. Why do I not see the index value?
2. Why are the "Blade Name" and "Blade Type" columns not associated with one another?
How can I fix this?