summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: deff5f4)
raw | patch | inline | side by side (parent: deff5f4)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 12 Sep 2003 11:38:32 +0000 (11:38 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Fri, 12 Sep 2003 11:38:32 +0000 (11:38 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@719 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 191fbedf34e2769177f6eb11b5170d1c0fc994ec..ab5e0cc327271d57446e703a0e9be96b7c869798 100644 (file)
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
if(sscanf(buf,"%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",&pl)==1 ||
sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% packet loss",&pl)==1 ||
sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% loss, time",&pl)==1 ||
- sscanf(buf,"%*d packets transmitted, %*d received, %d%% loss, time", &pl)==1)
+ sscanf(buf,"%*d packets transmitted, %*d received, %d%% loss, time", &pl)==1 ||
+ sscanf(buf,"%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", &pl) == 1)
continue;
/* get the round trip average */