diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-01-29 05:27:20 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-01-29 05:27:20 +0000 |
commit | e2e676c45fd1d65153669eddb50e9384d00670cd (patch) | |
tree | 70ee8c99122f8fbbee697e685f7b20497386be9f /contrib | |
parent | 4755abc5915ce3e77304823928ee31f9c5ac498d (diff) | |
download | monitoring-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.pl | 5 |
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 | ||
58 | print `$check $data[$z] $host`; | 58 | system($check, $data[$z], $host); |
59 | 59 | exit ($? / 256); | |
60 | |||
61 | 60 | ||
62 | sub usage | 61 | sub usage |
63 | { | 62 | { |