From 49fd57f43d590e45faef702a440d1ff98b4703e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Wed, 13 Feb 2013 15:21:31 +0100 Subject: [PATCH] Feature #1739: Monitor disabled hosts only if they have running VMs --- src/im/InformationManager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/im/InformationManager.cc b/src/im/InformationManager.cc index 4420fe230a..d3444989c3 100644 --- a/src/im/InformationManager.cc +++ b/src/im/InformationManager.cc @@ -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()