summaryrefslogtreecommitdiffstats
path: root/web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch')
-rw-r--r--web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch b/web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch
new file mode 100644
index 0000000..c50eb65
--- /dev/null
+++ b/web/attachments/144285-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 }