Code:
SNMPv2-SMI::enterprises.4526.18.5.1.2.1 = STRING: "35.0C/95.0F"
...FAN works, but temperature unfortunately not, most probably some parse via OID/REGEXP will be required.
Wouldn't be able someone to update it please ?
I tried to modify one of the example, but this seems to be nonsense ;-(
Code:
<query>.
<name>Get NetGEAR NV PLUS Temperature</name>.
<oid_index>.1.3.6.1.4.1.4526.18.5.1.2.1</oid_index>.
<oid_index_parse>OID/REGEXP:^([0-9][0-9]\.[0-9])</oid_index_parse>
<index_order_type>numeric</index_order_type>.
<index_title_format>|chosen_order_field|</index_title_format>.
<fields>.
<Index>.
<name>Index</name>.
<source>index</source>.
<direction>input</direction>.
</Index>.
<tempSample>.
<name>Temperature Sample</name>.
<method>walk</method>.
<source>value</source>.
<direction>input</direction>.
<oid>.1.3.6.1.4.1.4526.18.5.1.2.1</oid>.
</tempSample>.
<temp>.
<name>Temperature</name>.
<method>walk</method>.
<source>value</source>.
<direction>output</direction>.
<oid>.1.3.6.1.4.1.4526.18.5.1.2.1</oid>.
</temp>.
</fields>.
</query>
Code:
+ Running data query [25].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/netgear_cels_fahr_to_cels_only.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.4526.18.5.1.2.1' Index Count: 1
+ Index found at OID: 'enterprises.4526.18.5.1.2.1' value: '35.0C/95.0F'
+ index_parse at OID: 'enterprises.4526.18.5.1.2.1' results: 'enterprises.4526.18.5.1.2.1'
+ Inserting index data for field 'Index' [value='enterprises.4526.18.5.1.2.1']
+ Located input field 'tempSample' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4526.18.5.1.2.1'
+ Found item [tempSample='35.0C/95.0F'] index: enterprises.4526.18.5.1.2.1 [from value]