Page 1 of 1

Host Check Timed Out Error

Posted: Tue May 01, 2018 3:25 pm
by amitgupta19
I encountered a Error:
Host Check Host Timed out after 10 seconds.
Due to this nagios triggered the Email notification of Host Down.
But Actually the Host was not down.I verified it by logging on to the server.

After 2 minutes it got recovered and i got the email for the UP Notification of the Host.

How do i identify that it was due to the following:
1) Host Itself(But it was not the case)
2) Network
3) Nagios itself.

Is there any logging we can enable to track such issues, so that we gets to know the exact cause and correct it.

Re: Host Check Timed Out Error

Posted: Wed May 02, 2018 4:11 am
by amitgupta19
Any takers for this

Re: Host Check Timed Out Error

Posted: Wed May 02, 2018 10:19 am
by kyang
What plugin are you using for this host? check_ping or check_icmp?

What is the full command you are running? Most likely, you should increase the timeout value.

Re: Host Check Timed Out Error

Posted: Wed May 02, 2018 12:01 pm
by amitgupta19
I am using the check_ping .

Following is the command used:
check_ping -H $HOSTADDRESS$ -w 3000.0, 80% -c 5000.0, 100% -p 5

But if i increase the timeout value then what could be impact of it?

Also i gets this error not very frequently, but i want to get rid of this and reduce the false alert in the Nagios.

Re: Host Check Timed Out Error

Posted: Wed May 02, 2018 2:14 pm
by kyang
Basically, increasing the timeout value is just telling the plugin to wait a little longer for something to come back to Nagios before it cancels and then throws"Host Check Host Timed out after 10 seconds"

Currently, the default is set to -t 10 (10 seconds)

Code: Select all

 -t, --timeout=INTEGER
    Seconds before connection times out (default: 10)
You could also decrease the number of ECHO packets. As you are using the default of 5. Which would mean 5 packets per second.

This may help reduce the false alert as it may work as is now, but what if it takes 11 seconds to get back at times? Then the plugin would have already sent out the connection timeout since it's at 10 seconds by default.

Re: Host Check Timed Out Error

Posted: Wed May 02, 2018 3:03 pm
by amitgupta19
In some cases i have seen that even in 30 seconds it is not able to get the results.

SO does this mean that we have to increase it further like 45 seconds or 60 seconds.

Re: Host Check Timed Out Error

Posted: Thu May 03, 2018 11:10 am
by kyang
I saw here that you mentioned you were on Nagios 3.

https://support.nagios.com/forum/viewto ... 454#250663

If you could upgrade, and then see how the results are. Let us know.

Basically, increasing the timeout value is only to let Nagios determine when its time to call it a quits for that check.
If the checks are taking a longer time, and you would like to wait for those checks so you don't get a timeout error.
Yes, you could increase the timeout values. (This doesn't actually solve the issue of why its taking a long time for a ping to come back)