diff options
| -rw-r--r-- | NEWS | 2 | ||||
| -rwxr-xr-x | plugins-scripts/check_netdns.pl | 5 |
2 files changed, 6 insertions, 1 deletions
| @@ -19,6 +19,8 @@ This file documents the major additions and syntax changes between releases. | |||
| 19 | The format of the performance data emitted by check_mrtgtraf has been | 19 | The format of the performance data emitted by check_mrtgtraf has been |
| 20 | changed to comply with the development guidelines | 20 | changed to comply with the development guidelines |
| 21 | check_ssh not returns CRITICAL for protocal/version errors | 21 | check_ssh not returns CRITICAL for protocal/version errors |
| 22 | If a plugin is invoked with -h/--help or -V/--version, the exit status | ||
| 23 | is now UNKNOWN | ||
| 22 | 24 | ||
| 23 | 2.1.1 2nd December 2014 | 25 | 2.1.1 2nd December 2014 |
| 24 | FIXES | 26 | 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"; | |||
| 32 | use utils; | 32 | use utils; |
| 33 | 33 | ||
| 34 | my $PROGNAME = "check_netdns"; | 34 | my $PROGNAME = "check_netdns"; |
| 35 | sub print_help (); | ||
| 36 | sub print_version(); | ||
| 37 | sub print_usage (); | ||
| 35 | 38 | ||
| 36 | $ENV{'PATH'}='@TRUSTED_PATH@'; | 39 | $ENV{'PATH'}='@TRUSTED_PATH@'; |
| 37 | $ENV{'BASH_ENV'}=''; | 40 | $ENV{'BASH_ENV'}=''; |
| @@ -43,7 +46,7 @@ GetOptions("V" => $opt_V, "version" => $opt_V, | |||
| 43 | "t=i" => $opt_t, "timeout=i" => $opt_t, | 46 | "t=i" => $opt_t, "timeout=i" => $opt_t, |
| 44 | "s=s" => $opt_s, "server=s" => $opt_s, | 47 | "s=s" => $opt_s, "server=s" => $opt_s, |
| 45 | "H=s" => $opt_H, "hostname=s" => $opt_H); | 48 | "H=s" => $opt_H, "hostname=s" => $opt_H); |
| 46 | 49 | ||
| 47 | # -h means display verbose help screen | 50 | # -h means display verbose help screen |
| 48 | if($opt_h){ print_help(); exit 3; } | 51 | if($opt_h){ print_help(); exit 3; } |
| 49 | 52 | ||
