summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins-scripts/check_ntp.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl
index 13b50f5b..137a75a8 100755
--- a/plugins-scripts/check_ntp.pl
+++ b/plugins-scripts/check_ntp.pl
@@ -204,7 +204,7 @@ if (!open (NTPDATE, $ntpdate . " -q $host 2>&1 |")) {
204} 204}
205 205
206while (<NTPDATE>) { 206while (<NTPDATE>) {
207 print if ($verbose); 207 #print if ($verbose); # noop
208 $msg = $_ unless ($msg); 208 $msg = $_ unless ($msg);
209 209
210 if (/stratum\s(\d+)/) { 210 if (/stratum\s(\d+)/) {
@@ -313,7 +313,7 @@ if ($have_ntpq) {
313 # generate a warning 313 # generate a warning
314 # based on bug id 773588 314 # based on bug id 773588
315 unless (defined $syspeer) { 315 unless (defined $syspeer) {
316 if ($#candidates >0) { 316 if ($#candidates >=0) {
317 foreach my $c (@candidates) { 317 foreach my $c (@candidates) {
318 $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.]+)/; 318 $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.]+)/;
319 $syspeer = $2; 319 $syspeer = $2;