summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_netdns.pl
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2015-10-04 16:48:23 (GMT)
committerSven Nierlein <sven@nierlein.de>2015-10-04 17:24:30 (GMT)
commitd6baf9dbce1578ca59a577ac8155b835c46f0a16 (patch)
tree7f2cef8ef11361cc4a6c01b8951430e15f7a74ec /plugins-scripts/check_netdns.pl
parent741710c27c1749b81be4260a2ce0c18b319623cd (diff)
downloadmonitoring-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-xplugins-scripts/check_netdns.pl6
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
48if($opt_h){ print_help(); exit 0; } 48if($opt_h){ print_help(); exit 3; }
49 49
50# -V means display version number 50# -V means display version number
51if ($opt_V) { print_version(); exit 0; } 51if ($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