Code

patch for Suse 8.0 loss output
authorSubhendu Ghosh <sghosh@users.sourceforge.net>
Wed, 8 May 2002 15:35:37 +0000 (15:35 +0000)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>
Wed, 8 May 2002 15:35:37 +0000 (15:35 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@27 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_ping.c

index 3a02597cb16cca73026829edfe3e421c528af0b7..5eada4f49c17bf79512f1efc73d2aec0004c71d2 100644 (file)
@@ -396,7 +396,10 @@ run_ping (char *command_line)
                                        (input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss",
                                                &pl) == 1
                                || sscanf 
-                                       (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1      
+                                       (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1
+                               || sscanf
+                                       (input_buffer, "%*d packets transmitted, %*d received, %d%% loss, time", &pl) == 1
+                                       /* Suse 8.0 as reported by Richard * Brodie */
                                )
                        continue;