diff options
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r-- | plugins/check_ping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 191fbedf..ab5e0cc3 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -419,7 +419,8 @@ run_ping (const char *cmd, const char *addr) 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 */ |