[monitoring-plugins] Improvements suggested by tobiaswiese

Sven Nierlein git at monitoring-plugins.org
Thu Sep 2 10:00:12 CEST 2021


    Module: monitoring-plugins
    Branch: master
    Commit: cfc43a327526d838db5ec81f5594df4a14319786
    Author: Jonny007-MKD <nospam at jonny007-mkd.de>
 Committer: Sven Nierlein <sven at nierlein.org>
      Date: Mon May 24 20:40:02 2021 +0200
       URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=cfc43a3

Improvements suggested by tobiaswiese

---

 plugins/check_dns.c   | 4 ++--
 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 2f944f9..9de6caf 100644
--- a/plugins/check_dns.c
+++ b/plugins/check_dns.c
@@ -41,7 +41,7 @@ const char *email = "devel at monitoring-plugins.org";
 
 int process_arguments (int, char **);
 int validate_arguments (void);
-int error_scan (char *, int*);
+int error_scan (char *, int *);
 int ip_match_cidr(const char *, const char *);
 unsigned long ip2long(const char *);
 void print_help (void);
@@ -355,7 +355,7 @@ ip2long(const char* src) {
 }
 
 int
-error_scan (char *input_buffer, int* is_nxdomain)
+error_scan (char *input_buffer, int *is_nxdomain)
 {
 
   const int nxdomain = strstr (input_buffer, "Non-existent") ||
diff --git a/plugins/t/check_dns.t b/plugins/t/check_dns.t
index 1e7d534..afb2062 100644
--- a/plugins/t/check_dns.t
+++ b/plugins/t/check_dns.t
@@ -58,7 +58,7 @@ my $dns_server       = getTestParameter(
 my $host_nonresponsive = getTestParameter(
 			"NP_HOST_NONRESPONSIVE",
 			"The hostname of system not responsive to network requests",
-			"192.0.2.0",
+			"10.0.0.1",
 			);
 
 my $res;



More information about the Commits mailing list