I want to graph the usage of Radware AppDirector farms. So I added the following indexed SNMP query:
Code: Select all
<interface>
<name>Radware-WSD-FarmBytes</name>
<description>Using SNMP Queries for a list of farms and Bytes per farm</description>
<oid_index>.1.3.6.1.4.1.89.35.1.40.29.20.1.1</oid_index>
<oid_index_parse>OID/REGEXP:^.{33}(.*)</oid_index_parse>
<index_order>FarmName</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<FarmName>
<name>Farm Name</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.89.35.1.40.29.20.1.1</oid>
</FarmName>
<Bytes>
<name>Bytes</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.89.35.1.40.29.20.1.8</oid>
</Bytes>
</fields>
</interface>
The verbose query show that cacti really sees only 20 entries:
+ Running data query [16].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/radware_bytes.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.89.35.1.40.29.20.1.1' Index Count: 20
+ Index found at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.10.70.xxxxxxx' value: 'F_xxx'
+ Index found at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.20.70.yyyyyy' value: 'F_yyy'
.....
+ Index found at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.12.70.zzzzzzz' value: 'F_zzz'
+ index_parse at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.10.70.xxxxxxx' results: '10.70.xxxxxxx'
+ index_parse at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.20.70.yyyyyy' results: '20.70.yyyyyy'
...
+ index_parse at OID: '1.3.6.1.4.1.89.35.1.40.29.20.1.1.12.70.zzzzz' results: '12.70.zzzzzzz'
+ Located input field 'FarmName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.89.35.1.40.29.20.1.1'
+ Found item [FarmName='F_xxx'] index: 10.70.xxxxxx [from value]
+ Found item [FarmName='F_yyy'] index: 20.70.yyyyyy [from value]
...
+ Found item [FarmName='F_zzz'] index: 12.70.zzzzzz [from value]
Other indexed SNMP-queries work perfectly (e.g. interface.xml)
I am using Cacti 0.8.8 on Ubuntu server 10.04 with poller.cmd
Thanks for your help
Axel