summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 58fad23)
raw | patch | inline | side by side (parent: 58fad23)
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Tue, 23 Apr 2002 12:50:51 +0000 (12:50 +0000) | ||
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | |
Tue, 23 Apr 2002 12:50:51 +0000 (12:50 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@17 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ping.c | patch | blob | history |
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index b61b41b503cc4ff6fd032293cd57504e2b49c91e..3a02597cb16cca73026829edfe3e421c528af0b7 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
*
*****************************************************************************/
-#define PROGNAME "check_pgsql"
+#define PROGNAME "check_ping"
#define REVISION "$Revision$"
#define COPYRIGHT "1999-2001"
#define AUTHOR "Ethan Galstad/Karl DeBisschop"
/* get the percent loss statistics */
if (sscanf
- (input_buffer,
- "%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",
- &pl) == 1
- || sscanf (input_buffer,
- "%*d packets transmitted, %*d packets received, %d%% packet loss",
- &pl) == 1)
+ (input_buffer, "%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",
+ &pl) == 1
+ || sscanf
+ (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
+ )
continue;
/* get the round trip average */
"round-trip min/avg/max/std-dev = %*f/%f/%*f/%*f",
&rta) == 1
|| sscanf (input_buffer, "round-trip (ms) min/avg/max = %*f/%f/%*f",
- &rta) == 1)
+ &rta) == 1
+ || sscanf (input_buffer, "rtt min/avg/max/mdev = %*f/%f/%*f/%*f ms",
+ &rta) == 1
+ )
continue;
}