summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2005-03-04 22:20:17 +0000
committerTon Voon <tonvoon@users.sourceforge.net>2005-03-04 22:20:17 +0000
commitb5b77ce39eb67ac83ee0c7c18f7020607c8abee1 (patch)
treef918d7b8dc87647f2cfecedd6bde8f283a5962b7 /plugins-scripts
parentd713c5de2508f74d8db18dffee61ad2bbd3fa8ed (diff)
downloadmonitoring-plugins-b5b77ce39eb67ac83ee0c7c18f7020607c8abee1.tar.gz
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
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_ntp.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index cd02d477..8b5fe4d0 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -216,7 +216,9 @@ while (<NTPDATE>) {
216 216
217 # An offset of 0.000000 with an error is probably bogus. Actually, 217 # An offset of 0.000000 with an error is probably bogus. Actually,
218 # it's probably always bogus, but let's be paranoid here. 218 # it's probably always bogus, but let's be paranoid here.
219 if ($offset == 0) { undef $offset;} 219 # Has been reported that 0.0000 happens in a production environment
220 # so this check should be taken out - SF tracker 1150777
221 #if ($offset == 0) { undef $offset;}
220 222
221 $ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"}; 223 $ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"};
222 print "ntperr = $ntpdate_error \n" if $verbose; 224 print "ntperr = $ntpdate_error \n" if $verbose;