diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-29 22:03:24 (GMT) |
commit | 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch) | |
tree | 1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/30441-check_dns_random.diff | |
download | site-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz |
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts,
and configuration files.
Diffstat (limited to 'web/attachments/30441-check_dns_random.diff')
-rw-r--r-- | web/attachments/30441-check_dns_random.diff | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ | |||
1 | --- check_dns_random.pl Thu Sep 5 09:43:22 2002 | ||
2 | +++ check_dns_random.pl Thu Sep 5 09:58:32 2002 | ||
3 | @@ -55,9 +55,8 @@ | ||
4 | $x = rand $wc; | ||
5 | ($z,$y) = split(/\./,$x); | ||
6 | |||
7 | -print `$check $data[$z] $host`; | ||
8 | - | ||
9 | - | ||
10 | +system($check, $data[$z], $host); | ||
11 | +exit ($? / 256); | ||
12 | |||
13 | sub usage | ||
14 | { | ||
15 | |||