Page 1 of 1

timeout error nrpe plugin

Posted: Mon Nov 29, 2010 11:00 am
by wforumw
Hi,

I have a plugin on a remote server that takes some time to finisch (approx. 3 minutes)
When I try to use the nrpe.plugin to check the remote command I always get an error
NRPE: Command timed out after 60 second
s

The command I use is:

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H hostname -t 300 -c check_script
I changed in nagios.cfg

Code: Select all

service_check_timeout=300
How can I change the Command timeout to 240 second?

Many thanks

Re: timeout error nrpe plugin

Posted: Tue Nov 30, 2010 11:44 am
by tonyyarusso
There is a separate option for NRPE, command_timeout=60 in nrpe.cfg, as well as an NRPE-specific connection timeout.

Re: timeout error nrpe plugin

Posted: Tue Nov 30, 2010 3:10 pm
by wforumw
Thanks, that did it.
I only changed the command timeout in nagios,cfg and forgot to change it also in nrpe,cfg