Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 20, 2018 11:47 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Controlling Max-Repetitions
PostPosted: Mon Apr 09, 2012 9:59 am 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
Howdy,

Is there a way that one can control the max-repetitions of SNMPGetBuilkRequest? When executing via cmd snmpgetbulkrequest uses max-rep: 10. When Cacti executes it uses max-rep: 20.

I've set the Maximum OID's Per Get request for the device to 10 and the same for Settings > Poller > The MAximum SNMP OID's Per SNMP Get Request. This has not resulted in a change to the Max-repetitions value.


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Thu Apr 19, 2012 11:37 am 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
Bump?


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Fri Apr 20, 2012 6:23 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
This is which poller? cmd.php or spine? And which version?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Tue Apr 24, 2012 9:49 am 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
Thanks for getting back to me. This is using CMD.PHP in version 0.8.7i.


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Wed Apr 25, 2012 1:25 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
SeleniumSulfide wrote:
When executing via cmd snmpgetbulkrequest uses max-rep: 10. When Cacti executes it uses max-rep: 20.
How did you perform both tests? How did you verify, that it was 10 and 20? tcpdump?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Thu Apr 26, 2012 11:37 am 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
I used Wireshark to capture the traffic between the Cacti Windows Server & the Device and inspected the packets.

Testing procedure:
1) Executed SNMPBulkGet from the command line and inspected the packets. Max-Repetitions: 10
2) Clicked the Verbose Query link in Cacti and inspected the packets. Max-Repetitions: 20

If you'd like I can provide PCAP.


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Thu Apr 26, 2012 1:45 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Thanks for clarification. So what is the value for MAX OID for that very host?
Did you use "-Cr 10" when running snmpwalk from cli?
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Tue May 01, 2012 10:27 am 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
The MAX OID for every device & under Settings is 10.

When executing from the command line I did not use -C r10.

The command I used:
Code:
snmpbulkget -c <community> -v 2c <IP> <OID>


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Tue May 08, 2012 1:17 pm 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
Bump?

Any thoughts on how to change/correct this?


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Sat May 12, 2012 7:53 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
SeleniumSulfide wrote:
The MAX OID for every device & under Settings is 10.

When executing from the command line I did not use -C r10.

The command I used:
Code:
snmpbulkget -c <community> -v 2c <IP> <OID>

So please run the walk using -Cr10 to repeat what Cacti does. In case the device don't like -Cr10, please set MAX OIDs to 1 to deactivate
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Tue May 15, 2012 1:04 pm 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
To replicate what Cacti does I have to execute w/ -C r20. It would appear that the MAX_OIDs settings are not being used as Max Repetitions stays at 20 regardless of the Cacti settings.


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Sun May 20, 2012 12:29 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
is this behavior observed
- during "online" query, e.g. when the cacti host is displayed via brwoser
- during polling, using cmd.php
- during polling, using spine
- during polling from any plugin
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Mon May 21, 2012 12:13 pm 
Offline

Joined: Fri Feb 17, 2012 12:51 pm
Posts: 22
- during "online" query, e.g. when the cacti host is displayed via brwoser using verbose query
- during polling, using cmd.php


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Thu Nov 01, 2012 5:53 pm 
Offline

Joined: Fri Oct 28, 2011 5:12 pm
Posts: 4
Seeing similar behavior - changing the "Maximum OIDs Per Get Request" value on the host doesn't seem to change the observed value. This is apparent when both running spine, and running "Get Verbose Query" from the Device edit page.


Top
 Profile  
 
 Post subject: Re: Controlling Max-Repetitions
PostPosted: Sat Nov 10, 2012 1:57 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Well, I was talking about using the net-snmp libraries (which is NOT the default) while you where using the php-snmp extensions.
See http://de3.php.net/manual/en/ref.snmp.php; there's no such "snmpbulkwalk" function in php-snmp. Instead, the plain snmp_real_walk http://de3.php.net/manual/en/function.s ... l-walk.php is used by Cacti and this does what it does: It calls bulkwalk straight forward. And there seems to be no parameter to govern max-repetitions; this seems to be a value of "20", hard-coded.
So this seems to result in an enhancement request for php-snmp ...
But good to know, as some devices do NOT like bulkrequests. So, when using php-snmp, we will have to fall back to SNMP V1 to deactivate bulkwalk. Good find, damn it.
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group