From 74c00bde9e99accc870e931d72db9d3d9bf60842 Mon Sep 17 00:00:00 2001 From: Karl DeBisschop Date: Fri, 12 Sep 2003 11:38:32 +0000 Subject: new output format reported by Patrick Allen git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@719 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/check_ping.c') 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 */ -- cgit v1.2.3