X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fcheck_dns_random.pl;h=4bed4120a30d0adb24973802e1fd854b226155bb;hb=b8e2850c1add8031a11d951bec1459b203582299;hp=787d464413bce1adec9c5641fb3023e4a50ffe43;hpb=44a321cb8a42d6c0ea2d96a1086a17f2134c89cc;p=nagiosplug.git 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; $x = rand $wc; ($z,$y) = split(/\./,$x); -print `$check $data[$z] $host`; - - +system($check, $data[$z], $host); +exit ($? / 256); sub usage {