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/63638-check_ntp.patchfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 web/attachments/63638-check_ntp.patchfile (limited to 'web/attachments/63638-check_ntp.patchfile') 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 @@ +*** check_ntp.orig 2003-08-15 08:59:00.000000000 -0400 +--- check_ntp 2003-10-06 21:21:20.000000000 -0400 +## fixes error parsing ntpq output if 'poll' includes an "m", and +## corrected spelling of "CAndidate" +*************** +*** 258,268 **** + # number of candidates on for sys.peer + if (/^(\*|\+|\#|o])/) { + ++$candidates; +! print "Candiate count= $candidates\n" if ($verbose); + } + + # match sys.peer or pps.peer +! 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.]+)/) { + $syspeer = $2; + $stratum = $4; + $jitter = $11; +--- 258,268 ---- + # number of candidates on for sys.peer + if (/^(\*|\+|\#|o])/) { + ++$candidates; +! print "Candidate count= $candidates\n" if ($verbose); + } + + # match sys.peer or pps.peer +! 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.]+)/) { + $syspeer = $2; + $stratum = $4; + $jitter = $11; -- cgit v1.2.3-74-g34f1