Page 1 of 1
Timeout while attempting connection
Posted: Wed Dec 10, 2014 5:20 pm
by agutierrezps
Hello everyone,
I been kinda stressed these last weeks due to some Nagios Issues.
You see. I have been recieving this "Timeout while attempting connection" or "Service check timed out after 240.01 seconds". As you may see i have set the timeout to 240 (nagios.cfg, nrpe.cfg, command.cfg "check_nrpe command") but i still get these frustating errors.
Any idea what could be happening ???
My nagios version is 4.0.8 and nrpe is 2.7.
Regards.
Re: Timeout while attempting connection
Posted: Wed Dec 10, 2014 5:21 pm
by tmcdonald
Can you post the relevant service and command definitions for the services that are receiving these errors? And have you checked the standard things like firewall being open, able to ping the device, etc?
Re: Timeout while attempting connection
Posted: Wed Dec 10, 2014 6:06 pm
by agutierrezps
Hello,
This is my service definition, i use it for all my alarms definition.
define service{
host_name Test1
service_description Test1
check_period 24x7
check_command check_nrpe3!check_test
notification_period 24x7
normal_check_interval 15
retry_check_interval 5
max_check_attempts 3
notification_options w,c,r,u
notification_interval 0
}
and this is the command definition
define command{
command_name check_nrpe3
command_line $USER/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -p 5666 -t 240
}
Regards.
Re: Timeout while attempting connection
Posted: Wed Dec 10, 2014 6:36 pm
by Box293
Can you show us your nrpe.cfg file that has the check_test command defined.
Re: Timeout while attempting connection
Posted: Thu Dec 11, 2014 5:08 pm
by agutierrezps
Hello,
Here it is:
command_timeout=240
command[check_test]=/home/agutierrezps/test.sh
Re: Timeout while attempting connection
Posted: Thu Dec 11, 2014 5:17 pm
by Box293
So what is this /home/agutierrezps/test.sh script doing actually?
What happens on the remote server when you run it as Nagios?
Code: Select all
su nagios
/home/agutierrezps/test.sh