summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-01-29 05:27:20 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2003-01-29 05:27:20 +0000
commite2e676c45fd1d65153669eddb50e9384d00670cd (patch)
tree70ee8c99122f8fbbee697e685f7b20497386be9f
parent4755abc5915ce3e77304823928ee31f9c5ac498d (diff)
downloadmonitoring-plugins-e2e676c45fd1d65153669eddb50e9384d00670cd.tar.gz
Exit code added (604837 - Lachlan Cameron-Smith)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@264 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--contrib/check_dns_random.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/check_dns_random.pl b/contrib/check_dns_random.pl
index 787d4644..4bed4120 100644
--- a/contrib/check_dns_random.pl
+++ b/contrib/check_dns_random.pl
@@ -55,9 +55,8 @@ $wc =~ s/domains//g;
55$x = rand $wc; 55$x = rand $wc;
56($z,$y) = split(/\./,$x); 56($z,$y) = split(/\./,$x);
57 57
58print `$check $data[$z] $host`; 58system($check, $data[$z], $host);
59 59exit ($? / 256);
60
61 60
62sub usage 61sub usage
63{ 62{