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/42131-check_ntp.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/42131-check_ntp.diff (limited to 'web/attachments/42131-check_ntp.diff') diff --git a/web/attachments/42131-check_ntp.diff b/web/attachments/42131-check_ntp.diff new file mode 100644 index 0000000..43fdd6a --- /dev/null +++ b/web/attachments/42131-check_ntp.diff @@ -0,0 +1,16 @@ +Index: plugins-scripts/check_ntp.pl +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_ntp.pl,v +retrieving revision 1.12 +diff -u -r1.12 check_ntp.pl +--- plugins-scripts/check_ntp.pl 4 Feb 2003 05:54:39 -0000 1.12 ++++ plugins-scripts/check_ntp.pl 11 Feb 2003 21:10:26 -0000 +@@ -249,7 +249,7 @@ + } + + # match sys.peer or pps.peer +- if (/^(\*|o)([-0-9.\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([lumb]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { ++ if (/^(\*|o)([-0-9.\s]+)\s+([-0-9WVGPS.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { + $syspeer = $2; + $jitter = $11; + print "match $_ \n" if $verbose; -- cgit v1.2.3-74-g34f1