diff options
author | Sven Nierlein <sven@nierlein.de> | 2015-10-04 18:48:23 +0200 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2015-10-04 19:24:30 +0200 |
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 af1456be..fd418734 100755 --- a/plugins-scripts/check_netdns.pl +++ b/plugins-scripts/check_netdns.pl @@ -45,10 +45,10 @@ GetOptions("V" => $opt_V, "version" => $opt_V, "H=s" => $opt_H, "hostname=s" => $opt_H); # -h means display verbose help screen -if($opt_h){ print_help(); exit 0; } +if($opt_h){ print_help(); exit 3; } # -V means display version number -if ($opt_V) { print_version(); exit 0; } +if ($opt_V) { print_version(); exit 3; } # -H means host name $opt_H = shift unless ($opt_H); @@ -70,7 +70,7 @@ if ($opt_s) { $server = $1; } else { print "$opt_s is not a valid host name"; - exit -1; + exit 3; } } |