summaryrefslogtreecommitdiffstats
path: root/plugins/check_ping.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-09-12 11:38:32 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-09-12 11:38:32 (GMT)
commit74c00bde9e99accc870e931d72db9d3d9bf60842 (patch)
treed00bcc589b730c1f05dae745770c8e0dbea6d649 /plugins/check_ping.c
parentdeff5f48633cd5f296768b5a9593b8cac9f197a3 (diff)
downloadmonitoring-plugins-74c00bde9e99accc870e931d72db9d3d9bf60842.tar.gz
new output format reported by Patrick Allen <p.allen@brandblue.co.uk>
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@719 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_ping.c')
-rw-r--r--plugins/check_ping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 191fbed..ab5e0cc 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -419,7 +419,8 @@ run_ping (const char *cmd, const char *addr)
419 if(sscanf(buf,"%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",&pl)==1 || 419 if(sscanf(buf,"%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",&pl)==1 ||
420 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% packet loss",&pl)==1 || 420 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% packet loss",&pl)==1 ||
421 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% loss, time",&pl)==1 || 421 sscanf(buf,"%*d packets transmitted, %*d packets received, %d%% loss, time",&pl)==1 ||
422 sscanf(buf,"%*d packets transmitted, %*d received, %d%% loss, time", &pl)==1) 422 sscanf(buf,"%*d packets transmitted, %*d received, %d%% loss, time", &pl)==1 ||
423 sscanf(buf,"%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", &pl) == 1)
423 continue; 424 continue;
424 425
425 /* get the round trip average */ 426 /* get the round trip average */