Page 1 of 2

Socket timeout after 10 second

Posted: Sat Aug 05, 2017 9:48 am
by Zarfo
Hi,
I've just watched the video : "Nagios: Windows Server Monitoring. Monitoring Windows Servers with the Windows Server Wizard"
on Youtube and I tried to do the same with my PC.
Unfortunately I've got an critical status for all services (eccept ping) : "CRITICAL - Socket timeout after 10 seconds".



How can I solve this issue please (and thank you ) ?

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 11:27 am
by bolson
Run the following from a command line on your XI server

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote_ip>
Replacing <remoteip with the IP address of your Windows host and post the result.

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 1:49 pm
by bolson
Please confirm that nrpe is running on the remote machine:

Code: Select all

netstat -at |grep nrpe
Also, post the result of this command:

Code: Select all

cat /etc/xinetd.d/nrpe
Thank you.

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 1:51 pm
by bolson
Also, please reply to the existing topic rather than starting a new topic. Thank you!

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 4:38 pm
by Zarfo
Hi,
I've tried the netstat command on the nagios server , you can see below the result.

I've also tried the netstat command on the Windows machine but the "grep" command is unknown.

P.s : In my first answer and now I've just replied to the existng topic :o

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 4:48 pm
by bolson
As a troubleshooting test, run the following command replacing <ip_address> with the IP address of the remote host.

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote_ip> -t 60

Re: Socket timeout after 10 second

Posted: Mon Aug 07, 2017 5:14 pm
by Zarfo
The command :

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <remote_ip> -t 60
The result :

Code: Select all

CHECK_NRPE : Socket timout after 60 seconds
I forgot to tell but I think it may be useful, I use the nagios appliance.

Re: Socket timeout after 10 second

Posted: Tue Aug 08, 2017 10:02 am
by bolson
From a command prompt on the host that you're monitoring, type:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H localhost
And post the result.

Re: Socket timeout after 10 second

Posted: Wed Aug 09, 2017 3:01 pm
by Zarfo

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H localhost
Hi, I can't, I'is a Windows host.

Re: Socket timeout after 10 second

Posted: Wed Aug 09, 2017 3:12 pm
by bolson
Just to verify that this isn't a Windows Firewall issue, from the Nagios server, run the following command:

Code: Select all

telnet <remote_ip> 5666
Replacing <remote_ip> with the IP address of your Windows host.

And post the result.