From 2ee15e4b515d909877f51459a9a2be8d05c6ba19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 13 Feb 2013 13:01:58 +0100 Subject: [PATCH] Feature #1739: Monitor disabled hosts also --- src/host/HostPool.cc | 3 +-- src/im/InformationManager.cc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/host/HostPool.cc b/src/host/HostPool.cc index 762550e6d6..70aca1c245 100644 --- a/src/host/HostPool.cc +++ b/src/host/HostPool.cc @@ -281,8 +281,7 @@ int HostPool::discover(map * discovered_hosts, int host_limit) static_cast(discovered_hosts)); sql << "SELECT oid, body FROM " - << Host::table << " WHERE state != " - << Host::DISABLED << " ORDER BY last_mon_time ASC LIMIT " << host_limit; + << Host::table << " ORDER BY last_mon_time ASC LIMIT " << host_limit; rc = db->exec(sql,this); diff --git a/src/im/InformationManager.cc b/src/im/InformationManager.cc index b3fb10f42b..61b98002c6 100644 --- a/src/im/InformationManager.cc +++ b/src/im/InformationManager.cc @@ -200,8 +200,7 @@ void InformationManager::timer_action() hpool->update(host); } - if ( host->isEnabled() && !(host->isMonitoring()) && - (monitor_length >= monitor_period)) + if ( !(host->isMonitoring()) && (monitor_length >= monitor_period)) { oss.str(""); oss << "Monitoring host " << host->get_name()