mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 10:23:58 +09:00
Feature #1739: Monitor disabled hosts only if they have running VMs
This commit is contained in:
1 parent
22caac41d7
commit
49fd57f43d
1 file changed
+2
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user