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 %
CHECK_NRPE: Socket timeout after 10 seconds.
Re: CHECK_NRPE: Socket timeout after 10 seconds.
Is the port 5666 open? Run the following command on the nagios server and show us the output:
What is the output of the following command?
Also, can you show us the "check_cpu_util" command definition?
Code: Select all
nmap <client ip> -p 5666
Code: Select all
./check_nrpe -H <client ip>
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CHECK_NRPE: Socket timeout after 10 seconds.
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.
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.
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.
Former Nagios employee
Re: CHECK_NRPE: Socket timeout after 10 seconds.
ok thank you , i will check