summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2003-01-29 05:27:20 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2003-01-29 05:27:20 (GMT)
commite2e676c45fd1d65153669eddb50e9384d00670cd (patch)
tree70ee8c99122f8fbbee697e685f7b20497386be9f /contrib
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
Diffstat (limited to 'contrib')
-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 787d464..4bed412 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{