Nagios plugin timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
igmar
Posts: 1
Joined: Tue Jan 18, 2011 6:36 am

Nagios plugin timeout

Post by igmar »

Hi,

I've got Nagios up and running to monitor our infrastructure. All works well, except a single check that has a long runtime (> 30 sec). The service itself displays :

CHECK_UPDATES UNKNOWN - plugin timed out (timeout 15s)

The command definition :

define command{
command_name check_nrpe
command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 60
}

define service{
use c1-service
normal_check_interval 480
retry_check_interval 60
host_name s1.internal
service_description RPM
check_command check_nrpe!check_rpm
}

What am I missing here ? The timeout should be 60 seconds, but it is actually 15 seconds. I can't seem to find where that 15 seconds is coming from, nor how to change it. Can someone point me in the right direction ?

Regards,

Igmar
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios plugin timeout

Post by mguthrie »

Try putting the -t flag before the -c flag. It's probably interpreting your timeout as a command argument for the remote machine.
Locked