mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-08 16:26:23 -04:00
patched bug id 1204636
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1174 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
35f2cfd6e8
commit
36458320f7
1 changed files with 2 additions and 2 deletions
|
|
@ -204,7 +204,7 @@ if (!open (NTPDATE, $ntpdate . " -q $host 2>&1 |")) {
|
|||
}
|
||||
|
||||
while (<NTPDATE>) {
|
||||
print if ($verbose);
|
||||
#print if ($verbose); # noop
|
||||
$msg = $_ unless ($msg);
|
||||
|
||||
if (/stratum\s(\d+)/) {
|
||||
|
|
@ -313,7 +313,7 @@ if ($have_ntpq) {
|
|||
# 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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue