socket timeout after 30 seconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: socket timeout after 30 seconds

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post by iroy »

thanks tgriep.

what i provided yesterday is correct.

it 192.168.1.22 and 192.168.1.24.
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post 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
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: socket timeout after 30 seconds

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post 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;;;;
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: socket timeout after 30 seconds

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iroy
Posts: 53
Joined: Tue Jul 26, 2016 4:46 pm

Re: socket timeout after 30 seconds

Post 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;;;;
Last edited by iroy on Thu Sep 15, 2016 1:43 pm, edited 1 time in total.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: socket timeout after 30 seconds

Post by rkennedy »

We need to see the actual host / service definitions.
Former Nagios Employee
Locked