diff options
author | Sven Nierlein <sven@nierlein.org> | 2016-11-08 10:30:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-08 10:30:06 +0100 |
commit | 9c7f34cb57c5e6837d67e37fa06a5668d5cd9ddb (patch) | |
tree | f0786ff1382e44abb8ef8ed8fd289ebc35afba86 | |
parent | efaeecc8912db92256c80ee6e714f9752a45de00 (diff) | |
parent | 4195dc23d13b302c820828c1d600cdfb2d216650 (diff) | |
download | monitoring-plugins-9c7f34cb57c5e6837d67e37fa06a5668d5cd9ddb.tar.gz |
Merge pull request #1442 from waja/check_dig_use_retry_instead_tries
check_dig: use +retry instead of +tries
-rw-r--r-- | plugins/check_dig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index 473d4b97..da4f0ded 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -48,7 +48,7 @@ void print_usage (void); | |||
48 | 48 | ||
49 | #define UNDEFINED 0 | 49 | #define UNDEFINED 0 |
50 | #define DEFAULT_PORT 53 | 50 | #define DEFAULT_PORT 53 |
51 | #define DEFAULT_TRIES 3 | 51 | #define DEFAULT_TRIES 2 |
52 | 52 | ||
53 | char *query_address = NULL; | 53 | char *query_address = NULL; |
54 | char *record_type = "A"; | 54 | char *record_type = "A"; |
@@ -94,7 +94,7 @@ main (int argc, char **argv) | |||
94 | timeout_interval_dig = timeout_interval / number_tries + number_tries; | 94 | timeout_interval_dig = timeout_interval / number_tries + number_tries; |
95 | 95 | ||
96 | /* get the command to run */ | 96 | /* get the command to run */ |
97 | xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +tries=%d +time=%d", | 97 | xasprintf (&command_line, "%s %s %s -p %d @%s %s %s +retry=%d +time=%d", |
98 | PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, number_tries, timeout_interval_dig); | 98 | PATH_TO_DIG, dig_args, query_transport, server_port, dns_server, query_address, record_type, number_tries, timeout_interval_dig); |
99 | 99 | ||
100 | alarm (timeout_interval); | 100 | alarm (timeout_interval); |