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

Feature #1739: Monitor disabled hosts only if they have running VMs

This commit is contained in:
Carlos Martín 2013-02-13 15:21:31 +01:00
parent 22caac41d7
commit 49fd57f43d

View File

@ -200,7 +200,8 @@ void InformationManager::timer_action()
hpool->update(host);
}
if ( !(host->isMonitoring()) && (monitor_length >= monitor_period))
if ( !(host->isMonitoring()) && (monitor_length >= monitor_period) &&
(host->isEnabled() || host->get_share_running_vms() != 0) )
{
oss.str("");
oss << "Monitoring host " << host->get_name()