-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_ping runs 30 times when host is down #139
Comments
Fix for issue #139 `-w` (lower-case) was being used, and it should have been `-W` (upper-case). `-w` does not stop after `-c` count packets have been sent, it's just a timeout. `-W` stops sending after `-c` packets, but waits the timeout time before quitting.
Fixed in branch 'maint' via commit b7ee01a The |
This change broke my checks. All checks on hosts that are down now report If I set -W 15, ping still takes 24 seconds to terminate:
If I use -w 15, it terminates in just over 15 seconds:
|
…ectly modifies timeout behaviour of check_ping plugin. See also: nagios-plugins#139 nagios-plugins#323
When a host is down, check_ping will execute 30 times disregarding what value is set by -p. When the host is up, it is fine.
See this thread for a full tcpdump -
https://support.nagios.com/forum/viewtopic.php?f=7&t=36682&p=172260#p172340
The text was updated successfully, but these errors were encountered: