diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 23:34:01 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-04 23:42:41 +0200 |
commit | 3f17f18416521ee90b8823bab3324188976ac265 (patch) | |
tree | 195bd71e6cab33acfd4303545f6472f1e984217a /plugins-scripts/check_netdns.pl | |
parent | 5ca1bff80cf86c290a0803f3cf37aee9bd57d41f (diff) | |
parent | bebf1cd050ecb0e23f02353e19125767623bd41f (diff) | |
download | monitoring-plugins-3f17f18416521ee90b8823bab3324188976ac265.tar.gz |
Merge branch 'pr/1363'
* pr/1363:
use unknown exit code for help/version in plugins-root as well
use unknown exit code for help/version in plugins
change exit code to unknown on help and version info
use exit code 3 for version and help
Diffstat (limited to 'plugins-scripts/check_netdns.pl')
-rwxr-xr-x | plugins-scripts/check_netdns.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins-scripts/check_netdns.pl b/plugins-scripts/check_netdns.pl index 8c631089..38538e56 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl | |||
@@ -48,10 +48,10 @@ GetOptions("V" => $opt_V, "version" => $opt_V, | |||
48 | "H=s" => $opt_H, "hostname=s" => $opt_H); | 48 | "H=s" => $opt_H, "hostname=s" => $opt_H); |
49 | 49 | ||
50 | # -h means display verbose help screen | 50 | # -h means display verbose help screen |
51 | if($opt_h){ print_help(); exit 0; } | 51 | if($opt_h){ print_help(); exit 3; } |
52 | 52 | ||
53 | # -V means display version number | 53 | # -V means display version number |
54 | if ($opt_V) { print_version(); exit 0; } | 54 | if ($opt_V) { print_version(); exit 3; } |
55 | 55 | ||
56 | # -H means host name | 56 | # -H means host name |
57 | $opt_H = shift unless ($opt_H); | 57 | $opt_H = shift unless ($opt_H); |
@@ -73,7 +73,7 @@ if ($opt_s) { | |||
73 | $server = $1; | 73 | $server = $1; |
74 | } else { | 74 | } else { |
75 | print "$opt_s is not a valid host name"; | 75 | print "$opt_s is not a valid host name"; |
76 | exit -1; | 76 | exit 3; |
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||