[Nagiosplug-checkins] nagiosplug/plugins-scripts check_ntp.pl,1.25,1.26
Subhendu Ghosh
sghosh at users.sourceforge.net
Tue May 24 15:12:05 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32026/plugins-scripts
Modified Files:
check_ntp.pl
Log Message:
patched bug id 1204636
Index: check_ntp.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_ntp.pl,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- check_ntp.pl 19 Apr 2005 00:16:58 -0000 1.25
+++ check_ntp.pl 24 May 2005 22:10:05 -0000 1.26
@@ -204,7 +204,7 @@
}
while (<NTPDATE>) {
- print if ($verbose);
+ #print if ($verbose); # noop
$msg = $_ unless ($msg);
if (/stratum\s(\d+)/) {
@@ -313,7 +313,7 @@
# generate a warning
# based on bug id 773588
unless (defined $syspeer) {
- if ($#candidates >0) {
+ if ($#candidates >=0) {
foreach my $c (@candidates) {
$c =~ /^(#)([-0-9.\s]+)\s+([-0-9A-Za-z.]+)\s+([-0-9.]+)\s+([lumb-]+)\s+([-0-9m.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/;
$syspeer = $2;
More information about the Commits
mailing list