summaryrefslogtreecommitdiffstats
path: root/web/attachments/144382-nagios-plugins-1.4.1-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/144382-nagios-plugins-1.4.1-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/144382-nagios-plugins-1.4.1-check_ntp.patch')
-rw-r--r--web/attachments/144382-nagios-plugins-1.4.1-check_ntp.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/attachments/144382-nagios-plugins-1.4.1-check_ntp.patch b/web/attachments/144382-nagios-plugins-1.4.1-check_ntp.patch
new file mode 100644
index 0000000..c50eb65
--- /dev/null
+++ b/web/attachments/144382-nagios-plugins-1.4.1-check_ntp.patch
@@ -0,0 +1,20 @@
1--- nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl.orig 2005-08-03 13:37:36.876820293 +0200
2+++ nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl 2005-08-03 13:38:26.845893474 +0200
3@@ -309,7 +309,7 @@
4 }
5 } else {
6 print "No match!\n" if $verbose;
7- $jitter = '(not parsed)';
8+ $jitter = -1;
9 }
10
11 }
12@@ -421,7 +421,7 @@
13 foreach my $key (keys %ERRORS) {
14 if ($state==$ERRORS{$key}) {
15 # print ("NTP $key: $answer");
16- print ("NTP $key: $answer|offset=$offset, jitter=" . $jitter/1000 . ",peer_stratum=$stratum\n");
17+ print ("NTP $key: $answer|offset=$offset, jitter=" . (($jitter) ? $jitter/1000 : '-') . ",peer_stratum=$stratum\n");
18 last;
19 }
20 }