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/79492-check_ping.c.diff | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 web/attachments/79492-check_ping.c.diff (limited to 'web/attachments/79492-check_ping.c.diff') 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 @@ +--- check_ping.c.orig 2003-01-13 06:15:16.000000000 -0600 ++++ check_ping.c 2004-03-09 13:56:46.000000000 -0600 +@@ -391,6 +391,11 @@ + &pl) == 1 + || sscanf + (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1 ++ || sscanf ++ (input_buffer, "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss, time", &pl) == 1 ++ /* RHES 3.0 as reported by Todd A. Green ++ Note: This must come before the Suse line below ++ */ + || sscanf + (input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1 + /* Suse 8.0 as reported by Richard * Brodie */ -- cgit v1.2.3-74-g34f1