Is <rewrite_index>supported in 8.8b release ? I'm trying to use it but with no luck. Here is my query definition
Code: Select all
<juniSystemTempTable>
<name>Get Juniper E-series' temperature stats</name>
<description>Queries a ERX/E320 for temperature statistics</description>
<oid_index>.1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4</oid_index>
<oid_index_parse>OID/REGEXP:^.{33}(.*)$</oid_index_parse>
<index_order>juniSystemTempName:juniSystemTempPI</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|juniSystemTempPI|</index_title_format>
<fields>
<juniSystemTempPI>
<name>Temp sensor physical index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4</oid>
</juniSystemTempPI>
<juniSystemTempName>
<name>Temp sensor name</name>
<method>get</method>
<source>value</source>
<rewrite_index>|query_juniSystemTempPI|</rewrite_index>
<direction>input</direction>
<oid>.1.3.6.1.2.1.47.1.1.1.1.7</oid>
</juniSystemTempName>
<juniSystemTempValue>
<name>Temp sensor value</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.4874.2.2.2.1.9.4.1.3</oid>
</juniSystemTempValue>
</fields>
</juniSystemTempTable>
Code: Select all
+ Running data query [27].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/eseries_temperatures.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.4874.2.2.2.1.9.4.1.4' Index Count: 26
+ Index found at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.2' value: '118'
+ Index found at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.3' value: '119'
+ Index found at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.4' value: '120'
[ snip ]
+ index_parse at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.2' results: '2'
+ index_parse at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.3' results: '3'
+ index_parse at OID: '1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4.4' results: '4'
[ snip ]
+ Located input field 'juniSystemTempPI' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.4874.2.2.2.1.9.4.1.4'
+ Found item [juniSystemTempPI='118'] index: 2 [from value]
+ Found item [juniSystemTempPI='119'] index: 3 [from value]
+ Found item [juniSystemTempPI='120'] index: 4 [from value]
[ snip ]
+ Located input field 'juniSystemTempName' [get]
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.2' [value='Primary FAN']
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.3' [value='']
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.4' [value='POWER']
[ snip ]
Code: Select all
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.118' [value='something else']
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.119' [value='something else']
+ Executing SNMP get for data @ '.1.3.6.1.2.1.47.1.1.1.1.7.120' [value='something else']
While searching the forum I found this thread http://forums.cacti.net/viewtopic.php?f ... rite_index with the following info "Sorry, the rewrite stuff was not yet implemented (yes, I know, the docs say it will work)." I wonder if it's still true or <rewrite_index> is already supported in 8.8b but I do something wrong.
I really appreciate any ideas.
Paul