summaryrefslogtreecommitdiffstats
path: root/web/attachments/101025-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/101025-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/101025-check_ntp.patch')
-rw-r--r--web/attachments/101025-check_ntp.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/web/attachments/101025-check_ntp.patch b/web/attachments/101025-check_ntp.patch
new file mode 100644
index 0000000..373d521
--- /dev/null
+++ b/web/attachments/101025-check_ntp.patch
@@ -0,0 +1,40 @@
1Index: check_ntp.pl
2===================================================================
3RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_ntp.pl,v
4retrieving revision 1.19
5diff -u -w -r1.19 check_ntp.pl
6--- check_ntp.pl 14 Oct 2003 02:40:31 -0000 1.19
7+++ check_ntp.pl 10 Sep 2004 15:01:45 -0000
8@@ -358,13 +358,13 @@
9 } elsif( !$have_ntpq ) { # no errors from ntpdate and no ntpq or ntpq timed out
10 if (abs($offset) > $ocrit) {
11 $state = $ERRORS{'CRITICAL'};
12- $answer = "Offset $offset msec > +/- $ocrit sec\n";
13+ $answer = "Offset $offset sec > +/- $ocrit sec\n";
14 } elsif (abs($offset) > $owarn) {
15 $state = $ERRORS{'WARNING'};
16- $answer = "Offset $offset msec > +/- $owarn sec\n";
17+ $answer = "Offset $offset sec > +/- $owarn sec\n";
18 } elsif (( abs($offset) > $owarn) && $def_jitter ) {
19 $state = $ERRORS{'WARNING'};
20- $answer = "Offset $offset msec > +/- $owarn sec, ntpq timed out\n";
21+ $answer = "Offset $offset sec > +/- $owarn sec, ntpq timed out\n";
22 } elsif ( $def_jitter ) {
23 $state = $ERRORS{'WARNING'};
24 $answer = "Offset $offset secs, ntpq timed out\n";
25@@ -378,13 +378,13 @@
26 } else { # no errors from ntpdate or ntpq
27 if (abs($offset) > $ocrit) {
28 $state = $ERRORS{'CRITICAL'};
29- $answer = "Offset $offset msec > +/- $ocrit sec, jitter $jitter msec\n";
30+ $answer = "Offset $offset sec > +/- $ocrit sec, jitter $jitter msec\n";
31 } elsif (abs($jitter) > $jcrit ) {
32 $state = $ERRORS{'CRITICAL'};
33 $answer = "Jitter $jitter msec> +/- $jcrit msec, offset $offset sec \n";
34 } elsif (abs($offset) > $owarn) {
35 $state = $ERRORS{'WARNING'};
36- $answer = "Offset $offset msec > +/- $owarn sec, jitter $jitter msec\n";
37+ $answer = "Offset $offset sec > +/- $owarn sec, jitter $jitter msec\n";
38 } elsif (abs($jitter) > $jwarn ) {
39 $state = $ERRORS{'WARNING'};
40 $answer = "Jitter $jitter msec> +/- $jwarn msec, offset $offset sec \n";