1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #1739: Monitor disabled hosts also

This commit is contained in:
Carlos Martín 2013-02-13 13:01:58 +01:00
parent 5ad0a55cad
commit 2ee15e4b51
2 changed files with 2 additions and 4 deletions

View File

@ -281,8 +281,7 @@ int HostPool::discover(map<int, string> * discovered_hosts, int host_limit)
static_cast<void *>(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);

View File

@ -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()