aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xplugins-scripts/check_netdns.pl5
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 1a4aead3..28c99cb0 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,8 @@ This file documents the major additions and syntax changes between releases.
The format of the performance data emitted by check_mrtgtraf has been
changed to comply with the development guidelines
check_ssh not returns CRITICAL for protocal/version errors
+ If a plugin is invoked with -h/--help or -V/--version, the exit status
+ is now UNKNOWN
2.1.1 2nd December 2014
FIXES
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl
index fd418734..38538e56 100755
--- a/plugins-scripts/check_netdns.pl
+++ b/plugins-scripts/check_netdns.pl
@@ -32,6 +32,9 @@ use lib "$FindBin::Bin";
use utils;
my $PROGNAME = "check_netdns";
+sub print_help ();
+sub print_version();
+sub print_usage ();
$ENV{'PATH'}='@TRUSTED_PATH@';
$ENV{'BASH_ENV'}='';
@@ -43,7 +46,7 @@ GetOptions("V" => $opt_V, "version" => $opt_V,
"t=i" => $opt_t, "timeout=i" => $opt_t,
"s=s" => $opt_s, "server=s" => $opt_s,
"H=s" => $opt_H, "hostname=s" => $opt_H);
-
+
# -h means display verbose help screen
if($opt_h){ print_help(); exit 3; }