CHECK_NRPE: Socket timeout after 10 seconds.

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
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

CHECK_NRPE: Socket timeout after 10 seconds.

Post 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 %
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Post 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.
Former Nagios employee
veenm
Posts: 148
Joined: Tue Jun 18, 2013 5:58 am

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Post by veenm »

ok thank you , i will check
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CHECK_NRPE: Socket timeout after 10 seconds.

Post by tmcdonald »

Any word on this?
Former Nagios employee
Locked