foreman_monitoring icon indicating copy to clipboard operation
foreman_monitoring copied to clipboard

Status of removed service is shown

Open Holundermann opened this issue 6 years ago • 1 comments

The status of a removed service is still shown in the webfrontend:

foreman_monitoring_unknown

The mem service was removed and is not shown in icingaweb2 anymore but is still visible in the monitoring tab of foreman, icingweb2 view:

icingaweb2_services_ok

Holundermann avatar Mar 28 '18 15:03 Holundermann

I thought about this for a while now and did not find a good and easy solution. There is no event we can get from Icinga 2 (or only for objects that are managed by api endpoints for single objects). The typically behavior is a reload of Icinga 2 and a object removed from configuration is gone, so I think the only way to solve this is handling it during the initial importer and do something like store the timestamp of the last initial import and invalidate all objects older than this timestamp.

dgoetz avatar Jun 14 '18 12:06 dgoetz