[Nagiosplug-checkins] CVS: nagiosplug/plugins check_ping.c,1.24,1.25

Karl DeBisschop kdebisschop at users.sourceforge.net
Fri Sep 12 05:09:28 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv27386/plugins

Modified Files:
	check_ping.c 
Log Message:
new output format reported by Patrick Allen <p.allen at brandblue.co.uk>

Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** check_ping.c	22 Aug 2003 06:22:38 -0000	1.24
--- check_ping.c	12 Sep 2003 11:38:32 -0000	1.25
***************
*** 420,424 ****
  			 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)
  			continue;
  
--- 420,425 ----
  			 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 errors, %d%% packet loss", &pl) == 1)
  			continue;
  





More information about the Commits mailing list