Page 2 of 3

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Thu Jan 16, 2014 9:30 am
by DiegoAnjos
Is it a virtual server?

I had got the same issue once, when I used Nagios running on a VmWare machine.
As soon as I migrated it to HyperV, everything started working.

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Thu Jan 16, 2014 2:07 pm
by sreinhardt
Well, I wouldn't put it on the hypervisor right away, that's not a terribly common problem. Let's start by making sure those ports opened up with the previous changes.

Code: Select all

nmap -p 5666,12489 [hostname\IP]

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Fri Jan 17, 2014 12:36 am
by lafargeuser
# nmap -p 5666,12489 172.17.85.69

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2014-01-17 11:04 IST
Interesting ports on BGLRLXNAGIOS01.BGLRGOC.COM (172.16.98.129):
PORT STATE SERVICE
5666/tcp open unknown
12489/tcp closed unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.012 seconds

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Fri Jan 17, 2014 1:37 pm
by slansing
Alright, so it looks like currently the port used by check_nt is closed, while the NRPE port "5666" is open, do you have networking equipment in the route to the windows server, or the servers that are displaying this? Did you check the windows firewall?

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Mon Jan 27, 2014 1:10 am
by lafargeuser
So for working alright. But from last couple of days I am facing this issue.
Windows firewall is off.

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Mon Jan 27, 2014 11:58 am
by abrist
Can you post your nsclient config in code wraps?

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Tue Jan 28, 2014 1:58 am
by lafargeuser
Attaching....

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Tue Jan 28, 2014 2:53 pm
by abrist
Something is very strange here. Is 172.16.98.129 your windows server? I ask because port 5666 was open while 12489 was not in your previous nmap, but your nsclient config is not configured for nrpe(5666), but is for check_nt(12489). Are you sure this is the file from the windows system and that the the windows ip is 172.16.98.129?

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Wed Jan 29, 2014 1:15 am
by lafargeuser
172.16.98.129 is (Nagios Server)

However, I have changed this to 192.168.

Re: CRITICAL - Socket timeout after 20 seconds

Posted: Wed Jan 29, 2014 10:48 am
by abrist
What is the windows server ip?