From afb0e811bfffdd999f06e0c4b33aba6455b53300 Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Wed, 25 May 2005 14:25:55 +0000 Subject: [PATCH] RH9 pattern git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1181 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ping.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/check_ping.c b/plugins/check_ping.c index 74b6fce..5087833 100644 --- a/plugins/check_ping.c +++ b/plugins/check_ping.c @@ -419,7 +419,9 @@ run_ping (const char *cmd, const char *addr) 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%% packet loss, time", &pl)==1 || - sscanf(buf,"%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", &pl) == 1) + sscanf(buf,"%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss", &pl) == 1 || + sscanf(buf,"%*d packets transmitted %*d received, +%*d errors, %d%% packet loss", &pl) == 1 + ) continue; /* get the round trip average */ -- 2.30.2