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.
Host Check Timed Out Error
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Host Check Timed Out Error
Any takers for this
-
kyang
Re: Host Check Timed Out Error
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.
What is the full command you are running? Most likely, you should increase the timeout value.
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Host Check Timed Out Error
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.
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.
-
kyang
Re: Host Check Timed Out Error
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)
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.
Currently, the default is set to -t 10 (10 seconds)
Code: Select all
-t, --timeout=INTEGER
Seconds before connection times out (default: 10)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.
-
amitgupta19
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
Re: Host Check Timed Out Error
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.
SO does this mean that we have to increase it further like 45 seconds or 60 seconds.
-
kyang
Re: Host Check Timed Out Error
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)
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)