From e2e676c45fd1d65153669eddb50e9384d00670cd Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 29 Jan 2003 05:27:20 +0000 Subject: 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 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 { -- cgit v0.10-9-g596f