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. --- .../144285-nagios-plugins-1.4.1-check_ntp.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch (limited to 'web/attachments/144285-nagios-plugins-1.4.1-check_ntp.patch') 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 @@ +--- nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl.orig 2005-08-03 13:37:36.876820293 +0200 ++++ nagios-plugins-1.4.1/plugins-scripts/check_ntp.pl 2005-08-03 13:38:26.845893474 +0200 +@@ -309,7 +309,7 @@ + } + } else { + print "No match!\n" if $verbose; +- $jitter = '(not parsed)'; ++ $jitter = -1; + } + + } +@@ -421,7 +421,7 @@ + foreach my $key (keys %ERRORS) { + if ($state==$ERRORS{$key}) { + # print ("NTP $key: $answer"); +- print ("NTP $key: $answer|offset=$offset, jitter=" . $jitter/1000 . ",peer_stratum=$stratum\n"); ++ print ("NTP $key: $answer|offset=$offset, jitter=" . (($jitter) ? $jitter/1000 : '-') . ",peer_stratum=$stratum\n"); + last; + } + } -- cgit v1.2.3-74-g34f1