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

This commit is contained in:
Pavel Czerný authored and GitHub committed 2020-05-26 14:52:46 +02:00
1 parent 66579c5525
commit f89b5da5e7
1 file changed
-12
@@ -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));
}
}
/* -------------------------------------------------------------------------- */