[Nagiosplug-checkins] CVS: nagiosplug/plugins-scripts check_ntp.pl,1.13,1.14

Subhendu Ghosh sghosh at users.sourceforge.net
Sat Feb 15 18:19:01 CET 2003


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

Modified Files:
	check_ntp.pl 
Log Message:
all alphanumeric accepted for refid on ntpq

Index: check_ntp.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_ntp.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** check_ntp.pl	12 Feb 2003 04:30:36 -0000	1.13
--- check_ntp.pl	16 Feb 2003 02:18:00 -0000	1.14
***************
*** 233,237 ****
  #           If both exist, the last one is picked. 
  # Field 2: address of the remote peer
! # Field 3: Refid of the clock (0.0.0.0 if unknown, WWWV/PPS/GPS if Stratum1)
  # Field 4: stratum (0-15)
  # Field 5: Type of the peer: local (l), unicast (u), multicast (m) 
--- 233,237 ----
  #           If both exist, the last one is picked. 
  # Field 2: address of the remote peer
! # Field 3: Refid of the clock (0.0.0.0 if unknown, WWWV/PPS/GPS/ACTS/USNO/PCS/... if Stratum1)
  # Field 4: stratum (0-15)
  # Field 5: Type of the peer: local (l), unicast (u), multicast (m) 
***************
*** 261,265 ****
  
  			# match sys.peer or pps.peer
! 			if (/^(\*|o)([-0-9.\s]+)\s+([-0-9WwVvGgPpSs.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
  				$syspeer = $2;
  				$stratum = $4;
--- 261,265 ----
  
  			# match sys.peer or pps.peer
! 			if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
  				$syspeer = $2;
  				$stratum = $4;





More information about the Commits mailing list