check_openmanage: timeout vs. SNMP timeout

Justin T Pryzby justinp at norchemlab.com
Tue Dec 11 20:22:10 CET 2012


On Tue, Dec 11, 2012 at 06:35:35PM +0000, Andrew Daugherity wrote:
> Regarding your fix:
> The timeout option does appear to get passed to SNMP, however the
> actual timeout is twice what is specified.  E.g. --snmp=timeout=1,
> get SNMP critical message after 2 seconds; --snmp-timeout=14, SNMP
> critical at 28 seconds; --snmp-timeout=15 or higher, get UNKNOWN:
> PLUGIN TIMEOUT message at 30 seconds.  (I used a host without snmpd
> running for the timeout tests.)  I can't see anything obviously
> wrong with your code, but it behaves this way both on both SLES 11
> SP1 (Perl 5.10, net-snmp 5.4.2.1, Net::SNMP 6.0.1) and OS X 10.8
> (Perl 5.12.4, net-snmp 5.6, Net::SNMP 6.1 [from CPAN]).

That may be explained if the SNMP client has --retries=2.

Justin

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list