Page 1 of 1

Socket timeout

Posted: Fri Dec 21, 2018 4:55 am
by matisse
Hello, i have general question.
I should to check a lot of servers and services. But sometimes i got error "Socket timeout" only for 1 minute, after that status change to OK. It is affect http check, ntp check and etc. Usually i got socket timeout twice a day. My commands use the timeout key "-t 8:1"
Ports are open, tcpdump did not show errors. To increase timeout is not good idea as i think. What the problem with timeout can be?
Thank you.

Re: Socket timeout

Posted: Fri Dec 21, 2018 11:09 am
by benjaminsmith
Hi @matisse,

I think this is most likely the result of network issues; it's not uncommon to increase timeout settings for checks.

For example:

Code: Select all

check_http -H <ip address>  -t  60
Increasing the Nagios Global Timeout
Edit the Nagios config file,/usr/local/nagios/etc, the two directives to change are:

Code: Select all

host_check_timeout=60
service_check_timeout=60
Save changes and re-start core.

Let us know if that resolves the issue for you.