diff options
author | Jan Wagner <waja@cyconet.org> | 2014-01-30 09:35:41 +0100 |
---|---|---|
committer | Jan Wagner <waja@cyconet.org> | 2014-01-30 11:07:22 +0100 |
commit | df53473d03783ef853465c80162758bb6ee403c7 (patch) | |
tree | 7cd67f0a582c6164546c4c187aa02c6f2800ed88 /lib/tests/test_opts2.t | |
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 'lib/tests/test_opts2.t')
0 files changed, 0 insertions, 0 deletions