1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net-mgmt/nagios-plugins/files/patch-plugins-scripts__check_ntp.pl
Pav Lucistnik 28f968e38a 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)
2006-05-15 13:07:20 +00:00

20 lines
587 B
Perl

--- 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;
}
}