Page 2 of 4

Re: socket timeout after 30 seconds

Posted: Tue Sep 13, 2016 4:57 pm
by iroy
additional info.


Ran below from 192.168.1.22.

vps@vps-cl0:~/scripts$ ping 192.168.1.24
PING 192.168.1.24 (192.168.1.24) 56(84) bytes of data.
64 bytes from 192.168.1.24: icmp_seq=1 ttl=64 time=0.369 ms
64 bytes from 192.168.1.24: icmp_seq=2 ttl=64 time=0.407 ms
64 bytes from 192.168.1.24: icmp_seq=3 ttl=64 time=0.415 ms
^C
--- 192.168.1.24 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.369/0.397/0.415/0.020 ms
vps@vps-cl0:~/scripts$ traceroute 192.168.1.24
traceroute to 192.168.1.24 (192.168.1.24), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *



Ran below from 192.168.1.24.

vps@vps-cl2:~/scripts$ ping 192.168.1.22
PING 192.168.1.22 (192.168.1.22) 56(84) bytes of data.
64 bytes from 192.168.1.22: icmp_seq=1 ttl=64 time=0.313 ms
64 bytes from 192.168.1.22: icmp_seq=2 ttl=64 time=0.368 ms
64 bytes from 192.168.1.22: icmp_seq=3 ttl=64 time=0.398 ms
64 bytes from 192.168.1.22: icmp_seq=4 ttl=64 time=0.397 ms
^C
--- 192.168.1.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.313/0.369/0.398/0.034 ms
vps@vps-cl2:~/scripts$ traceroute 192.168.1.22
traceroute to 192.168.1.22 (192.168.1.22), 30 hops max, 60 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * *^C

Re: socket timeout after 30 seconds

Posted: Wed Sep 14, 2016 9:32 am
by tgriep
In the screen shot from your first post showing the errors is trying to use this IP address 192.168.1.23 and not the other 2 that you posted the information for.
Verify that it is the correct IP address you want to check and if so, post the output from the same commands you ran on the other 2 systems.

Re: socket timeout after 30 seconds

Posted: Wed Sep 14, 2016 12:28 pm
by iroy
thanks tgriep.

what i provided yesterday is correct.

it 192.168.1.22 and 192.168.1.24.

Re: socket timeout after 30 seconds

Posted: Wed Sep 14, 2016 12:32 pm
by iroy
I'm not understanding why 24 or 22 tells me that the other host is down.

***** Nagios XI Alert *****

Nagios has detected a problem with this host.

Notification Type: PROBLEM
Host: 192.168.1.22
State: DOWN
Address: 192.168.1.22
Info: CRITICAL - Socket timeout after 10 seconds
Date/Time: 2016-09-14 10:24:47

Re: socket timeout after 30 seconds

Posted: Wed Sep 14, 2016 12:45 pm
by iroy
pls see attached.

If i click on "Force an immediate check" in the attached page, then it comes back with a green tick.

Similar for "Ping this host".

PING 192.168.1.22 (192.168.1.22) 56(84) bytes of data.
64 bytes from 192.168.1.22: icmp_seq=1 ttl=64 time=0.384 ms
64 bytes from 192.168.1.22: icmp_seq=2 ttl=64 time=0.383 ms
64 bytes from 192.168.1.22: icmp_seq=3 ttl=64 time=0.401 ms
64 bytes from 192.168.1.22: icmp_seq=4 ttl=64 time=0.360 ms
64 bytes from 192.168.1.22: icmp_seq=5 ttl=64 time=0.359 ms

--- 192.168.1.22 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.359/0.377/0.401/0.023 ms

Re: socket timeout after 30 seconds

Posted: Thu Sep 15, 2016 9:36 am
by tgriep
Can you login to the server at IP address 192.168.1.24, run the following command and post the output?

Code: Select all

su nagios
/usr/local/nagios/libexec/check_icmp -H 192.168.1.22 -w 3000.0,80% -c 5000.0,100% -p 5
For all of the other errors when running the NRPE checks, take a look at this guide for solutions to the errors you are having.
https://assets.nagios.com/downloads/nag ... utions.pdf

Re: socket timeout after 30 seconds

Posted: Thu Sep 15, 2016 12:11 pm
by iroy
thanks tgriep.

/usr/local/nagios/libexec/check_icmp -H 192.168.1.22 -w 3000.0,80% -c 5000.0,100% -p 5
OK - 192.168.1.22: rta 0.400ms, lost 0%|rta=0.400ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.475ms;;;; rtmin=0.343ms;;;;

Re: socket timeout after 30 seconds

Posted: Thu Sep 15, 2016 12:30 pm
by tgriep
Can you post the configuration settings for the host check that is giving you the socket timeout after 10 seconds?
The command from my previous post, you could use for the host check and is should work for you.

Re: socket timeout after 30 seconds

Posted: Thu Sep 15, 2016 1:40 pm
by iroy
From server 24 running the command.

nagios@vps-cl2:/home/vps/scripts$ /usr/local/nagios/libexec/check_icmp -H 192.168.1.24 -w 3000.0,80% -c 5000.0,100% -p 5
OK - 192.168.1.24: rta 0.030ms, lost 0%|rta=0.030ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.079ms;;;; rtmin=0.017ms;;;;

From server 22 running the commands.

/usr/local/nagios/libexec/check_icmp -H 192.168.1.24 -w 3000.0,80% -c 5000.0,100% -p 5
OK - 192.168.1.24: rta 0.373ms, lost 0%|rta=0.373ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.431ms;;;; rtmin=0.260ms;;;;

Re: socket timeout after 30 seconds

Posted: Thu Sep 15, 2016 1:42 pm
by rkennedy
We need to see the actual host / service definitions.