I'm trying to create my first SNMP Data Query following cacti guide, but I'm having some problems.
The device I'm scanning is an air conditioning system. The index of the different devices is formed by the last two digits of the mib, example:
.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.1 = STRING: "CDZ-01"
.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.2 = STRING: "CDZ-02"
.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.3 = STRING: "CDZ-03"
(...)
On this basis I've created this xml template:
Code: Select all
<query>
<name>Get SNMP Stulz WIB 8000</name>
<description>Queries Stulz WIB 8000</description>
<oid_uptime>.1.3.x.x.x</oid_uptime>
<oid_index>.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,3}\.[0-9]{1,3})$</oid_index_parse>
<index_order>unitsettingName</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<unitsettingName>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221</oid>
</unitsettingName>
<unitReturnAirTemperature>
<name>ReturnAirTemperature</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.29462.10.2.1.1.1.1.1.1.1.1192</oid>
</unitReturnAirTemperature>
</fields>
</query>
Code: Select all
Data Query Debug Information
+ Running data query [15].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/opt/cacti/resource/snmp_queries/wib8000.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.29462.10.1.1.6.1.1.393221' Index Count: 5
+ Index found at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.1' value: '55:6E:69:74:C3:A0:20:54:2D:31'
+ Index found at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.2' value: '55:6E:69:74:C3:A0:20:54:2D:32'
+ Index found at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.3' value: '55:6E:69:74:C3:A0:20:48:2D:31'
+ Index found at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.4' value: '55:6E:69:74:C3:A0:20:48:2D:32'
+ Index found at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.5' value: '55:6E:69:74:C3:A0:20:48:2D:33'
+ index_parse at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.1' results: '1.1'
+ index_parse at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.2' results: '1.2'
+ index_parse at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.3' results: '1.3'
+ index_parse at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.4' results: '1.4'
+ index_parse at OID: '1.3.6.1.4.1.29462.10.1.1.6.1.1.393221.1.5' results: '1.5'
+ Located input field 'unitsettingName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.29462.10.1.1.6.1.1.393221'
+ Found item [unitsettingName='55:6E:69:74:C3:A0:20:54:2D:31'] index: 1.1 [from value]
+ Found item [unitsettingName='55:6E:69:74:C3:A0:20:54:2D:32'] index: 1.2 [from value]
+ Found item [unitsettingName='55:6E:69:74:C3:A0:20:48:2D:31'] index: 1.3 [from value]
+ Found item [unitsettingName='55:6E:69:74:C3:A0:20:48:2D:32'] index: 1.4 [from value]
+ Found item [unitsettingName='55:6E:69:74:C3:A0:20:48:2D:33'] index: 1.5 [from value]
why?
Thank's
Simon