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:
parent
5ad0a55cad
commit
2ee15e4b51
@ -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);
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user