From b5b77ce39eb67ac83ee0c7c18f7020607c8abee1 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 4 Mar 2005 22:20:17 +0000 Subject: [PATCH] Ignore extra check on offset 0.00000 (John Warburton - 1150777) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1148 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-scripts/check_ntp.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index cd02d47..8b5fe4d 100755 --- a/plugins-scripts/check_ntp.pl +++ b/plugins-scripts/check_ntp.pl @@ -216,7 +216,9 @@ while () { # 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; -- 2.30.2