summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2002-05-08 15:35:37 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2002-05-08 15:35:37 (GMT)
commit94a0d099c2e2b1e27fbcae5f2d18f5c4297da03b (patch)
tree6550c20713b148d2066a03e1239be8d4fd547bd5
parent0976cd742c310675b771bf59ebc689864e70c107 (diff)
downloadmonitoring-plugins-94a0d099c2e2b1e27fbcae5f2d18f5c4297da03b.tar.gz
patch for Suse 8.0 loss output
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@27 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins/check_ping.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 3a02597..5eada4f 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -396,7 +396,10 @@ run_ping (char *command_line)
396 (input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss", 396 (input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss",
397 &pl) == 1 397 &pl) == 1
398 || sscanf 398 || sscanf
399 (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1 399 (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1
400 || sscanf
401 (input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1
402 /* Suse 8.0 as reported by Richard * Brodie */
400 ) 403 )
401 continue; 404 continue;
402 405