aboutsummaryrefslogtreecommitdiff
path: root/plugins-scripts/check_ntp.pl
diff options
context:
space:
mode:
authorGravatar Subhendu Ghosh <sghosh@users.sourceforge.net> 2005-05-24 22:10:05 +0000
committerGravatar Subhendu Ghosh <sghosh@users.sourceforge.net> 2005-05-24 22:10:05 +0000
commit36458320f7e8cd3d8960008f332633d14885cfa0 (patch)
treed2476e06b842013bdc2ca1477ca40981190cfd10 /plugins-scripts/check_ntp.pl
parent35f2cfd6e82407eb64e80ef3311fbc1e86829112 (diff)
downloadmonitoring-plugins-36458320f7e8cd3d8960008f332633d14885cfa0.tar.gz
patched bug id 1204636
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1174 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/check_ntp.pl')
-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 |")) {
}
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;