Page 1 of 1

CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Fri Aug 01, 2014 10:56 am
by veenm
Hi ,

I am getting below NRPE scoket timeout error when i execute command from Nagios server , however when i run the same command manually on the server i get a output. what should i do to fix this ?

Command i am running from nagios server

[nagios@nagios libexec]$ ./check_nrpe -H 1xxx1 -c check_cpu_util -a 80 70 4 -p 5666 -t 120
CHECK_NRPE: Socket timeout after 10 seconds.

Command i am running on the server end

/usr/lib64/nagios/plugins/check_cpu_util.sh -w 80 -c 70 -i 4
OK: CPU UTILIZATION IS 2 %

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Fri Aug 01, 2014 2:50 pm
by lmiltchev
Is the port 5666 open? Run the following command on the nagios server and show us the output:

Code: Select all

nmap <client ip> -p 5666
What is the output of the following command?

Code: Select all

./check_nrpe -H <client ip>
Also, can you show us the "check_cpu_util" command definition?

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Mon Aug 04, 2014 5:20 am
by veenm
Hi ,

5666 port is open and also i am getting check_nrpe version from nagios . check_cpu_util is a custom script and it is working on all other servers except on this server.

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Mon Aug 04, 2014 4:30 pm
by tmcdonald
Does your script require root permissions? If so, does the NRPE server have the proper sudoers rules or permissions on the script? Compare this server against the other working servers.

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Fri Aug 08, 2014 10:20 am
by veenm
ok thank you , i will check

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Posted: Fri Aug 15, 2014 10:35 am
by tmcdonald
Any word on this?