summaryrefslogtreecommitdiffstats
path: root/web/attachments/122868-check_ntp.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/122868-check_ntp.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/122868-check_ntp.patch')
-rw-r--r--web/attachments/122868-check_ntp.patch15
1 files changed, 15 insertions, 0 deletions
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 @@
1*** nagios-plugins-HEAD-200502231747/plugins-scripts/check_ntp.pl Fri Nov 19 14:59:43 2004
2--- nagios-plugins-NEW/plugins-scripts/check_ntp.pl Thu Feb 24 16:13:59 2005
3***************
4*** 200,209 ****
5 if (/(offset|adjust)\s+([-.\d]+)/i) {
6 $offset = $2;
7
8- # An offset of 0.000000 with an error is probably bogus. Actually,
9- # it's probably always bogus, but let's be paranoid here.
10- if ($offset == 0) { undef $offset;}
11-
12 $ntpdate_error = defined ($offset) ? $ERRORS{"OK"} : $ERRORS{"CRITICAL"};
13 print "ntperr = $ntpdate_error \n" if $verbose;
14
15--- 200,205 ----