From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/122868-check_ntp.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 web/attachments/122868-check_ntp.patch (limited to 'web/attachments/122868-check_ntp.patch') diff --git a/web/attachments/122868-check_ntp.patch b/web/attachments/122868-check_ntp.patch new file mode 100644 index 0000000..b463ed6 --- /dev/null +++ b/web/attachments/122868-check_ntp.patch @@ -0,0 +1,15 @@ +*** nagios-plugins-HEAD-200502231747/plugins-scripts/check_ntp.pl Fri Nov 19 14:59:43 2004 +--- nagios-plugins-NEW/plugins-scripts/check_ntp.pl Thu Feb 24 16:13:59 2005 +*************** +*** 200,209 **** + if (/(offset|adjust)\s+([-.\d]+)/i) { + $offset = $2; + +- # 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;} +- + $ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"}; + print "ntperr = $ntpdate_error \n" if $verbose; + +--- 200,205 ---- -- cgit v1.2.3-74-g34f1