From a9f1d3395ffffc75db80446d197fc0c82f381db0 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 25 May 2020 21:58:28 +0200 Subject: [PATCH] M #-: Prevent monitor ERROR looping for vcenter --- src/monitor/src/monitor/HostMonitorManager.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/monitor/src/monitor/HostMonitorManager.cc b/src/monitor/src/monitor/HostMonitorManager.cc index 38464414cf..b32325a677 100644 --- a/src/monitor/src/monitor/HostMonitorManager.cc +++ b/src/monitor/src/monitor/HostMonitorManager.cc @@ -152,8 +152,7 @@ void HostMonitorManager::update_host(int oid, const std::string &xml) { stop_host_monitor(host); } - else if ((old_state == Host::OFFLINE || old_state == Host::ERROR) - && !host->monitor_in_progress()) + else if (old_state == Host::OFFLINE && !host->monitor_in_progress()) { start_host_monitor(host); }