summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_netdns.pl
diff options
context:
space:
mode:
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 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,
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