diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 15:35:37 (GMT) |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-08 15:35:37 (GMT) |
commit | 94a0d099c2e2b1e27fbcae5f2d18f5c4297da03b (patch) | |
tree | 6550c20713b148d2066a03e1239be8d4fd547bd5 | |
parent | 0976cd742c310675b771bf59ebc689864e70c107 (diff) | |
download | monitoring-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.c | 5 |
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 | ||