diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_dns.c | 4 | ||||
-rw-r--r-- | plugins/t/check_dns.t | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_dns.c b/plugins/check_dns.c index 2f944f92..9de6caf5 100644 --- a/plugins/check_dns.c +++ b/plugins/check_dns.c | |||
@@ -41,7 +41,7 @@ const char *email = "devel@monitoring-plugins.org"; | |||
41 | 41 | ||
42 | int process_arguments (int, char **); | 42 | int process_arguments (int, char **); |
43 | int validate_arguments (void); | 43 | int validate_arguments (void); |
44 | int error_scan (char *, int*); | 44 | int error_scan (char *, int *); |
45 | int ip_match_cidr(const char *, const char *); | 45 | int ip_match_cidr(const char *, const char *); |
46 | unsigned long ip2long(const char *); | 46 | unsigned long ip2long(const char *); |
47 | void print_help (void); | 47 | void print_help (void); |
@@ -355,7 +355,7 @@ ip2long(const char* src) { | |||
355 | } | 355 | } |
356 | 356 | ||
357 | int | 357 | int |
358 | error_scan (char *input_buffer, int* is_nxdomain) | 358 | error_scan (char *input_buffer, int *is_nxdomain) |
359 | { | 359 | { |
360 | 360 | ||
361 | const int nxdomain = strstr (input_buffer, "Non-existent") || | 361 | const int nxdomain = strstr (input_buffer, "Non-existent") || |
diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t index 1e7d5340..afb2062d 100644 --- a/plugins/t/check_dns.t +++ b/plugins/t/check_dns.t | |||
@@ -58,7 +58,7 @@ my $dns_server = getTestParameter( | |||
58 | my $host_nonresponsive = getTestParameter( | 58 | my $host_nonresponsive = getTestParameter( |
59 | "NP_HOST_NONRESPONSIVE", | 59 | "NP_HOST_NONRESPONSIVE", |
60 | "The hostname of system not responsive to network requests", | 60 | "The hostname of system not responsive to network requests", |
61 | "192.0.2.0", | 61 | "10.0.0.1", |
62 | ); | 62 | ); |
63 | 63 | ||
64 | my $res; | 64 | my $res; |