From b13d06d7da6ef69ed375b800d80ba22977d7f77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Czern=C3=BD?= Date: Wed, 4 Jan 2023 16:14:36 +0100 Subject: [PATCH] F #6039: Reset monitoring timers (#2430) (cherry picked from commit 3de39f9340220b31a319c8c8c67783e1da699f49) --- src/monitor/src/monitor/HostMonitorManager.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/monitor/src/monitor/HostMonitorManager.cc b/src/monitor/src/monitor/HostMonitorManager.cc index e32088fe42..20078f4dc2 100644 --- a/src/monitor/src/monitor/HostMonitorManager.cc +++ b/src/monitor/src/monitor/HostMonitorManager.cc @@ -159,6 +159,12 @@ void HostMonitorManager::update_host(int oid, const std::string &xml) start_host_monitor(host); } + // Reset last monitoring timestamps + host->last_state_vm(0); + host->last_monitor_vm(0); + host->last_monitor_host(0); + host->last_system_host(0); + NebulaLog::debug("HMM", "Updated Host " + to_string(host->oid()) + ", state " + Host::state_to_str(host->state())); }