summaryrefslogtreecommitdiffstats
path: root/web/attachments/79492-check_ping.c.diff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/79492-check_ping.c.diff
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/79492-check_ping.c.diff')
-rw-r--r--web/attachments/79492-check_ping.c.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/attachments/79492-check_ping.c.diff b/web/attachments/79492-check_ping.c.diff
new file mode 100644
index 0000000..8a201cf
--- /dev/null
+++ b/web/attachments/79492-check_ping.c.diff
@@ -0,0 +1,14 @@
1--- check_ping.c.orig 2003-01-13 06:15:16.000000000 -0600
2+++ check_ping.c 2004-03-09 13:56:46.000000000 -0600
3@@ -391,6 +391,11 @@
4 &pl) == 1
5 || sscanf
6 (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1
7+ || sscanf
8+ (input_buffer, "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss, time", &pl) == 1
9+ /* RHES 3.0 as reported by Todd A. Green
10+ Note: This must come before the Suse line below
11+ */
12 || sscanf
13 (input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1
14 /* Suse 8.0 as reported by Richard * Brodie */