From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/30441-check_dns_random.diff | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/30441-check_dns_random.diff (limited to 'web/attachments/30441-check_dns_random.diff') diff --git a/web/attachments/30441-check_dns_random.diff b/web/attachments/30441-check_dns_random.diff new file mode 100644 index 0000000..785fbc5 --- /dev/null +++ b/web/attachments/30441-check_dns_random.diff @@ -0,0 +1,15 @@ +--- check_dns_random.pl Thu Sep 5 09:43:22 2002 ++++ check_dns_random.pl Thu Sep 5 09:58:32 2002 +@@ -55,9 +55,8 @@ + $x = rand $wc; + ($z,$y) = split(/\./,$x); + +-print `$check $data[$z] $host`; +- +- ++system($check, $data[$z], $host); ++exit ($? / 256); + + sub usage + { + -- cgit v1.2.3-74-g34f1