diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-15 13:07:20 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2006-05-15 13:07:20 +0000 |
commit | 28f968e38aecfca99842a5c484bf9436ba947619 (patch) | |
tree | 078e69ebce82ed0d478c472fee2936a8cd1b7d9b /net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl | |
parent | - Update to 0.8.6.20060514 (diff) |
Update to Nagios Plugins 1.4.3:
- Variable ordering and style realigned with bsd.port.mk
- Moved manual pre-configure aclocal call to use bsd.autotools.mk (with manual
tweak to ACLOCAL_ARGS required)
- Listed resulting plug-in name in user configurable options
- Removed remaining hard-coded variables including local state directory
- Correctly identified location of Perl to configure script
- Removed setlocale (LC_NUMERIC, "C") patch to plug-ins containing scanf(3) and
an already defined LC_NUMERIC
- Reworked all patches (named using make makepatch)
- Corrected minor warning in check_ntp.pl regarding undefined use of $jitter
PR: ports/97189
Submitted by: Jarrod Sayers <jarrod@netleader.com.au> (maintainer)
Notes
Notes:
svn path=/head/; revision=162435
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl')
-rw-r--r-- | net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl b/net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl new file mode 100644 index 000000000000..1bf2557f831f --- /dev/null +++ b/net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl @@ -0,0 +1,19 @@ +--- plugins-scripts/check_ntp.pl.orig Wed Nov 30 11:19:47 2005 ++++ plugins-scripts/check_ntp.pl Fri May 12 23:39:15 2006 +@@ -314,7 +314,6 @@ + } + } else { + print "No match!\n" if $verbose; +- $jitter = '(not parsed)'; + } + + } +@@ -428,7 +427,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 || 0)/1000 . ",peer_stratum=$stratum\n"); + last; + } + } |