indexed SNMP query doesn't get all entries

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ah68
Posts: 3
Joined: Tue Apr 24, 2012 5:57 am

indexed SNMP query doesn't get all entries

Post by ah68 »

Hi,
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> 
This works but only displays the first 20 entries although I get all the 31 entries if I do an snmpwalk from the Cacti-machine.
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
ah68
Posts: 3
Joined: Tue Apr 24, 2012 5:57 am

Re: indexed SNMP query doesn't get all entries

Post by ah68 »

One more thing:
When I do an snmpbulkwalk from the shell without the "-Cc" option (do not check returned OIDs are increasing) I only get the first 20 entries with the warning message:
Error: OID not increasing: SNMPv2-SMI::enterprises.89.35.1.40.29.20.1.1....
at 9 entries.
When I add the -Cr11 option I still get the error messages but all entries are displayed.

I thought I can change the -Cr option with the "Maximum OID's Per Get Request" but that doesn't change anything.

Does anybody have a hint how to change that (I even switched to spine but that didn't help either) ?

Perhaps it is another possibility to add the "-Cc" hardcoded to the snmp.php or does that break something else?

Where could I add that option?

Thanks for listening :wink:

Axel
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: indexed SNMP query doesn't get all entries

Post by gandalf »

Yes, the -Cc issue is an ugly one.
We do not provide any settings to rule this. You may want to change lib/snmp.php to add this option (there are multiple calls to be changed).
We might accept a feature request to make this option configurable as a global settings option.
But I hate devices that work that way ...
R.
ah68
Posts: 3
Joined: Tue Apr 24, 2012 5:57 am

Re: indexed SNMP query doesn't get all entries

Post by ah68 »

Hi,
thanks for your reply. I opened an issue describing this (#2225) and I hope you accept it.

However as I am not really a coding guru (well: beginner would describe my abilities): Could you please point me to the lines I would have to change?

Thanks
Axel
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests