diff options
author | Jan Wagner <waja@cyconet.org> | 2014-01-30 08:35:41 (GMT) |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-01-30 10:07:22 (GMT) |
commit | df53473d03783ef853465c80162758bb6ee403c7 (patch) | |
tree | 7cd67f0a582c6164546c4c187aa02c6f2800ed88 /THANKS.in | |
parent | 7310030ae7a30f61990641c5c1674531823f457f (diff) | |
download | monitoring-plugins-df53473d03783ef853465c80162758bb6ee403c7.tar.gz |
check_dig: patch to make dig honor -t option
When a timeout value is specified with the -t option, dig will sometimes
timeout before the timer is actually reached.
The problem occurs because the check_dig plugin does not pass the specified
timeout value to dig, leaving dig to timeout with it's default value which
seems to be around 10-15seconds.
To reproduce:
time ./check_dig -H 127.0.0.2 -l www.google.com -t 30
It will not run for 30secs, which is the expected behaviour.
The following will work, because the timeout is less than the default dig
timeout, so the plugin cancels the dig command:
time ./check_dig -H 127.0.0.2 -l www.google.com -t 2
This fix passes the timeout value to dig, and sets the number of retries which tends to vary from system to system by default.
Closes #1168
Diffstat (limited to 'THANKS.in')
-rw-r--r-- | THANKS.in | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -305,3 +305,4 @@ Geoff Oakham | |||
305 | Tim Laszlo | 305 | Tim Laszlo |
306 | Stéphane Bortzmeyer | 306 | Stéphane Bortzmeyer |
307 | Luca Corti | 307 | Luca Corti |
308 | Jethro Carr | ||