[Pkg-nagios-devel] Bug#578721: nagios-nrpe-plugin: Timeout option is not working whichever integer is specified

Alexander Wirt formorer at formorer.de
Tue Sep 13 05:35:19 UTC 2011


tag 57821 unreproducible
thanks

Hristo Malinov schrieb am Thursday, den 22. April 2010:

> Package: nagios-nrpe-plugin
> Version: 2.12-1
> Severity: normal
> 
> 
> check_nrpe -t 60 for example is not working.
> The timeouts are always 10s , which is the default according to the manual.
I can't reproduce your problem: 

% time /usr/lib/nagios/plugins/check_nrpe -H google.de
-t 20 
CHECK_NRPE: Socket timeout after 20 seconds.
/usr/lib/nagios/plugins/check_nrpe -H google.de -t 20  0.00s user 0.00s
system 0% cpu 20.007 total
time /usr/lib/nagios/plugins/check_nrpe -H google.de
-t 5
CHECK_NRPE: Socket timeout after 5 seconds.
/usr/lib/nagios/plugins/check_nrpe -H google.de -t 5  0.00s user 0.00s system
0% cpu 5.007 total

> 
> There is also a strange behavior when using -u and -t .
> The option -u is working only when -t is not specified.
> 
> Example:
> 
> /usr/lib/nagios/plugins/check_nrpe -H <hostname> -u -c procs -a root cron
> CHECK_NRPE: Socket timeout after 10 seconds.
> 3 ---------> UNKNOWN
> 
> /usr/lib/nagios/plugins/check_nrpe -H <hostname> -u -t 60 -c procs -a root cron
> CRITICAL - Plugin timed out after 10 seconds
> 2 ---------> CRITICAL
time /usr/lib/nagios/plugins/check_nrpe -H google.de  -t 5 -u 
CHECK_NRPE: Socket timeout after 5 seconds.
/usr/lib/nagios/plugins/check_nrpe -H google.de -t 5 -u  0.00s user 0.00s
system 0% cpu 5.007 total
% echo $?
3

this one also looks good. (yeah I also tried together with -c and -a).
Can you tell me how to reproduce the problem?

Thanks in advance
Alex






More information about the Pkg-nagios-devel mailing list