mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
parent
66579c5525
commit
f89b5da5e7
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user