[Nagiosplug-checkins] CVS: nagiosplug/plugins check_ping.c,1.27,1.28

Matthew Kent mattkent at users.sourceforge.net
Sat Nov 20 14:30:09 CET 2004


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9620

Modified Files:
	check_ping.c 
Log Message:
New output format reported by pumuckel1980 (946857)


Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** check_ping.c	25 Feb 2004 07:49:12 -0000	1.27
--- check_ping.c	20 Nov 2004 22:28:57 -0000	1.28
***************
*** 424,427 ****
--- 424,428 ----
  			 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)
  			continue;





More information about the Commits mailing list