Socket timeout after 10 second

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Zarfo
Posts: 6
Joined: Sat Aug 05, 2017 9:41 am

Socket timeout after 10 second

Post 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 ) ?
You do not have the required permissions to view the files attached to this post.
bolson

Re: Socket timeout after 10 second

Post 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.
bolson

Re: Socket timeout after 10 second

Post 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.
bolson

Re: Socket timeout after 10 second

Post by bolson »

Also, please reply to the existing topic rather than starting a new topic. Thank you!
Zarfo
Posts: 6
Joined: Sat Aug 05, 2017 9:41 am

Re: Socket timeout after 10 second

Post 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
You do not have the required permissions to view the files attached to this post.
bolson

Re: Socket timeout after 10 second

Post 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
Zarfo
Posts: 6
Joined: Sat Aug 05, 2017 9:41 am

Re: Socket timeout after 10 second

Post 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.
bolson

Re: Socket timeout after 10 second

Post 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.
Zarfo
Posts: 6
Joined: Sat Aug 05, 2017 9:41 am

Re: Socket timeout after 10 second

Post by Zarfo »

Code: Select all

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

Re: Socket timeout after 10 second

Post 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.
Locked