[Nagiosplug-checkins] nagiosplug/plugins-scripts check_ntp.pl,1.21,1.22

Ton Voon tonvoon at users.sourceforge.net
Fri Mar 4 14:21:24 CET 2005


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

Modified Files:
	check_ntp.pl 
Log Message:
Ignore extra check on offset 0.00000 (John Warburton - 1150777)


Index: check_ntp.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_ntp.pl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- check_ntp.pl	4 Mar 2005 21:50:02 -0000	1.21
+++ check_ntp.pl	4 Mar 2005 22:20:17 -0000	1.22
@@ -216,7 +216,9 @@
 
 		# An offset of 0.000000 with an error is probably bogus. Actually,
 		# it's probably always bogus, but let's be paranoid here.
-		if ($offset == 0) { undef $offset;}
+		# Has been reported that 0.0000 happens in a production environment
+		# so this check should be taken out - SF tracker 1150777
+		#if ($offset == 0) { undef $offset;}
 
 		$ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"};
 		print "ntperr = $ntpdate_error \n" if $verbose;





More information about the Commits mailing list