[Nagiosplug-checkins] CVS: nagiosplug/plugins check_ping.c,1.1.1.1,1.2
Subhendu Ghosh
sghosh at users.sourceforge.net
Tue Apr 23 05:51:06 CEST 2002
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv5854
Modified Files:
check_ping.c
Log Message:
corrected program name and added rtt patch for RH7.2+beta
Index: check_ping.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ping.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** check_ping.c 28 Feb 2002 06:42:58 -0000 1.1.1.1
--- check_ping.c 23 Apr 2002 12:50:51 -0000 1.2
***************
*** 11,15 ****
*****************************************************************************/
! #define PROGNAME "check_pgsql"
#define REVISION "$Revision$"
#define COPYRIGHT "1999-2001"
--- 11,15 ----
*****************************************************************************/
! #define PROGNAME "check_ping"
#define REVISION "$Revision$"
#define COPYRIGHT "1999-2001"
***************
*** 391,400 ****
/* get the percent loss statistics */
if (sscanf
! (input_buffer,
! "%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",
! &pl) == 1
! || sscanf (input_buffer,
! "%*d packets transmitted, %*d packets received, %d%% packet loss",
! &pl) == 1)
continue;
--- 391,402 ----
/* get the percent loss statistics */
if (sscanf
! (input_buffer, "%*d packets transmitted, %*d packets received, +%*d errors, %d%% packet loss",
! &pl) == 1
! || sscanf
! (input_buffer, "%*d packets transmitted, %*d packets received, %d%% packet loss",
! &pl) == 1
! || sscanf
! (input_buffer, "%*d packets transmitted, %*d packets received, %d%% loss, time", &pl) == 1
! )
continue;
***************
*** 416,420 ****
&rta) == 1
|| sscanf (input_buffer, "round-trip (ms) min/avg/max = %*f/%f/%*f",
! &rta) == 1)
continue;
}
--- 418,425 ----
&rta) == 1
|| sscanf (input_buffer, "round-trip (ms) min/avg/max = %*f/%f/%*f",
! &rta) == 1
! || sscanf (input_buffer, "rtt min/avg/max/mdev = %*f/%f/%*f/%*f ms",
! &rta) == 1
! )
continue;
}
More information about the Commits
mailing list