diff options
author | Sven Nierlein <sven@nierlein.de> | 2015-10-04 16:48:23 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-04 17:24:30 (GMT) |
commit | d6baf9dbce1578ca59a577ac8155b835c46f0a16 (patch) | |
tree | 7f2cef8ef11361cc4a6c01b8951430e15f7a74ec /plugins-scripts/check_netdns.pl | |
parent | 741710c27c1749b81be4260a2ce0c18b319623cd (diff) | |
download | monitoring-plugins-d6baf9dbce1578ca59a577ac8155b835c46f0a16.tar.gz |
change exit code to unknown on help and version info
Signed-off-by: Sven Nierlein <sven@nierlein.de>
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 af1456b..fd41873 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl | |||
@@ -45,10 +45,10 @@ GetOptions("V" => $opt_V, "version" => $opt_V, | |||
45 | "H=s" => $opt_H, "hostname=s" => $opt_H); | 45 | "H=s" => $opt_H, "hostname=s" => $opt_H); |
46 | 46 | ||
47 | # -h means display verbose help screen | 47 | # -h means display verbose help screen |
48 | if($opt_h){ print_help(); exit 0; } | 48 | if($opt_h){ print_help(); exit 3; } |
49 | 49 | ||
50 | # -V means display version number | 50 | # -V means display version number |
51 | if ($opt_V) { print_version(); exit 0; } | 51 | if ($opt_V) { print_version(); exit 3; } |
52 | 52 | ||
53 | # -H means host name | 53 | # -H means host name |
54 | $opt_H = shift unless ($opt_H); | 54 | $opt_H = shift unless ($opt_H); |
@@ -70,7 +70,7 @@ if ($opt_s) { | |||
70 | $server = $1; | 70 | $server = $1; |
71 | } else { | 71 | } else { |
72 | print "$opt_s is not a valid host name"; | 72 | print "$opt_s is not a valid host name"; |
73 | exit -1; | 73 | exit 3; |
74 | } | 74 | } |
75 | } | 75 | } |
76 | 76 | ||