summaryrefslogtreecommitdiffstats
path: root/tools/setup
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2014-01-30 08:35:41 (GMT)
committerJan Wagner <waja@cyconet.org>2014-01-30 10:07:22 (GMT)
commitdf53473d03783ef853465c80162758bb6ee403c7 (patch)
tree7cd67f0a582c6164546c4c187aa02c6f2800ed88 /tools/setup
parent7310030ae7a30f61990641c5c1674531823f457f (diff)
downloadmonitoring-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 'tools/setup')
0 files changed, 0 insertions, 0 deletions