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

F #3859: Host to MONITORED only on system_host (#4811)

This commit is contained in:
Pavel Czerný 2020-05-26 14:52:46 +02:00 committed by GitHub
parent 66579c5525
commit f89b5da5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,13 +274,6 @@ void HostMonitorManager::monitor_host(int oid, const Template &tmpl)
host->monitor_in_progress(false);
NebulaLog::info("HMM", "Successfully monitored host: " + to_string(oid));
// Send host state update to oned
if (host->state() != Host::MONITORED &&
host->state() != Host::DISABLED)
{
oned_driver->host_state(oid, Host::state_to_str(Host::MONITORED));
}
}
/* -------------------------------------------------------------------------- */
@ -398,11 +391,6 @@ void HostMonitorManager::start_monitor_success(int oid)
host->last_monitored(time(nullptr));
host->monitor_in_progress(false);
if (host->state() != Host::DISABLED)
{
oned_driver->host_state(oid, Host::state_to_str(Host::MONITORED));
}
}
/* -------------------------------------------------------------------------- */