I found the howto in lvm's sig (from snmptable to XML graphs), and it's helping, but I think I've missed something subtle:
My XML file:
Code: Select all
<interface>
<name>CSS Sub-Module CPU Info (Instantaneous)</name>
<description>Get current CSS Sub-Module CPU usage</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.9.9.368.1.34.17.1.13</oid_index>
<oid_index_parse>OID/REGEXP:.*\.9\.9\.368\.1\.34\.17\.1\.13\.([0-9]*\]])</oid_index_parse>
<fields>
<cssCPUInstantIndex>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.9.9.368.1.34.17.1.13</oid>
</cssCPUInstantIndex>
</fields>
</interface>
Code: Select all
+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/home/cacti-0.8.6h/resource/snmp_queries/cssCPUInstant.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.368.1.34.17.1.13'
+ Located input field 'cssCPUInstantIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9.9.368.1.34.17.1.13'
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.1.1 [from value]
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.2.1 [from value]
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.3.1 [from value]
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.6.1 [from value]
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.7.1 [from value]
+ Found item [cssCPUInstantIndex='0'] index: .1.3.6.1.4.1.9.9.368.1.34.17.1.13.8.1 [from value]
+ Found data query XML file at '/home/cacti-0.8.6h/resource/snmp_queries/cssCPUInstant.xml'
+ Found data query XML file at '/home/cacti-0.8.6h/resource/snmp_queries/cssCPUInstant.xml'
+ Found data query XML file at '/home/cacti-0.8.6h/resource/snmp_queries/cssCPUInstant.xml'