occasional "socket timeout after 10 seconds"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

occasional "socket timeout after 10 seconds"

Post by lpereira »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... 16&t=45274
In the future, please create a new thread and link to the old one instead of adding on.


Hello, i'm facing the same ramdom issue. should i send you the file as well?
bolson

Re: occasional "socket timeout after 10 seconds"

Post by bolson »

Yes please
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: occasional "socket timeout after 10 seconds"

Post by lpereira »

bolson wrote:Yes please

great, i just sent it
bolson

Re: occasional "socket timeout after 10 seconds"

Post by bolson »

File received and shared with team
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: occasional "socket timeout after 10 seconds"

Post by lpereira »

bolson wrote:File received and shared with team
Hello... any update on this?

thanks!
bolson

Re: occasional "socket timeout after 10 seconds"

Post by bolson »

It could be that at random times a server being checked becomes busy and it cannot respond in time before the default timeout for the plugin kicks in and displays the timeout message.
But, the default time out for those plugins can be increased bu going to the Core Config Manager > Commands menu, find those commands and add the -t option to the command like the example below.

Code: Select all

-t 60
Try this and let us know if it resolves your issue. Thank you!
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: occasional "socket timeout after 10 seconds"

Post by lpereira »

This seems not to be a good option since almost all the services send that message.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: occasional "socket timeout after 10 seconds"

Post by scottwilkerson »

lpereira wrote:This seems not to be a good option since almost all the services send that message.
It's hard to really say conclusively what the complete cause of this issue is. There are several reason that can cause this issue, it could be network congestion, too many threads being used on the monitoring server, or a isolated problem at the far end.

The timeout is basically saying it made the request, but didn't hear back from the remote server in the time allotted.

This generally isn't a problem on the Nagios server, and if intermittent I would tend to look at connectivity problems.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lpereira
Posts: 143
Joined: Thu Jul 27, 2017 4:23 pm

Re: occasional "socket timeout after 10 seconds"

Post by lpereira »

I have a few servers being monitored on remote locations with a ping TTL flapping between 715 and 1000 ms. The regular TTL is about 150 to 350ms. should that be the cause? is there a way to fix that if is the case?
bolson

Re: occasional "socket timeout after 10 seconds"

Post by bolson »

Hello lpereira, as a troubleshooting measure run the following on the command line of your NagiosXI server replacing ip_address with the IP address of one of the hosts you're having trouble with:

Code: Select all

ping ip_address > ping.txt
Let it run for several hours, stop it with ^C, and attach ping.txt to this topic.

Thank you!
Locked