summaryrefslogtreecommitdiffstats
path: root/web/attachments/63638-check_ntp.patchfile
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/63638-check_ntp.patchfile
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/63638-check_ntp.patchfile')
-rw-r--r--web/attachments/63638-check_ntp.patchfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/attachments/63638-check_ntp.patchfile b/web/attachments/63638-check_ntp.patchfile
new file mode 100644
index 0000000..619b43c
--- /dev/null
+++ b/web/attachments/63638-check_ntp.patchfile
@@ -0,0 +1,29 @@
1*** check_ntp.orig 2003-08-15 08:59:00.000000000 -0400
2--- check_ntp 2003-10-06 21:21:20.000000000 -0400
3## fixes error parsing ntpq output if 'poll' includes an "m", and
4## corrected spelling of "CAndidate"
5***************
6*** 258,268 ****
7 # number of candidates on <host> for sys.peer
8 if (/^(\*|\+|\#|o])/) {
9 ++$candidates;
10! print "Candiate count= $candidates\n" if ($verbose);
11 }
12
13 # match sys.peer or pps.peer
14! if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
15 $syspeer = $2;
16 $stratum = $4;
17 $jitter = $11;
18--- 258,268 ----
19 # number of candidates on <host> for sys.peer
20 if (/^(\*|\+|\#|o])/) {
21 ++$candidates;
22! print "Candidate count= $candidates\n" if ($verbose);
23 }
24
25 # match sys.peer or pps.peer
26! if (/^(\*|o)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9m.]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {
27 $syspeer = $2;
28 $stratum = $4;
29 $jitter = $11;