Socket timeout

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
matisse
Posts: 30
Joined: Wed Aug 31, 2016 4:33 pm

Socket timeout

Post 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.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Socket timeout

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked