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:
parent
22caac41d7
commit
49fd57f43d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user