1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

F #6039: Reset monitoring timers (#2430)

(cherry picked from commit 3de39f9340220b31a319c8c8c67783e1da699f49)
This commit is contained in:
Pavel Czerný 2023-01-04 16:14:36 +01:00 committed by Ruben S. Montero
parent bec6e0b469
commit b13d06d7da
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -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()));
}