Page 1 of 2

occasional "socket timeout after 10 seconds"

Posted: Tue Aug 22, 2017 3:29 pm
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?

Re: occasional "socket timeout after 10 seconds"

Posted: Tue Aug 22, 2017 3:33 pm
by bolson
Yes please

Re: occasional "socket timeout after 10 seconds"

Posted: Tue Aug 22, 2017 3:42 pm
by lpereira
bolson wrote:Yes please

great, i just sent it

Re: occasional "socket timeout after 10 seconds"

Posted: Wed Aug 23, 2017 10:33 am
by bolson
File received and shared with team

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 7:27 am
by lpereira
bolson wrote:File received and shared with team
Hello... any update on this?

thanks!

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 9:39 am
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!

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 9:47 am
by lpereira
This seems not to be a good option since almost all the services send that message.

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 9:59 am
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.

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 4:07 pm
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?

Re: occasional "socket timeout after 10 seconds"

Posted: Thu Aug 24, 2017 4:46 pm
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!