[dev.icinga.com #4809] no broker event is created when old/stale downtimes are wiped from the core data #1353
Comments
Updated by mfriedrich on 2013-10-07 20:01:21 +00:00 likely related but not a fix imho: https://github.com/dnsmichi/nagioscore/commit/b81d8280c801ac18e49838a541d049b0c201b736 |
Updated by mfriedrich on 2013-10-07 20:49:33 +00:00 the event for expiring a downtime is only scheduled for flexible downtimes which may never trigger and therefore not being active within their start-end window (EVENT_EXPIRE_DOWNTIME). for fixed downtimes it does not make much sense as they get removed at their end_time anyways. deleting a downtime happens in delete_service_downtime() which removes the downtime from the list in memory and also triggers a neb callback with broker_downtime_data(NEBTYPE_DOWNTIME_DELETE - the status.dat update isn't done immediately but left for the aggregated status update there may of course happen an error, which is not respected in its return code in delete_{host,service}_downtime() ... the status update calls are pretty useless afterall.
would be interesting to get a reproducible sample downtime, as well as (debug) logs for that. |
Updated by mfriedrich on 2013-10-08 08:38:50 +00:00
|
Updated by mfriedrich on 2013-10-08 17:40:06 +00:00 imho the other issue should take care of the general wipe/insert problem. this one here is special and i am not sure if those events can be triggered accurately given the information provided after reading retention.dat |
Updated by mfriedrich on 2014-01-25 16:23:24 +00:00
|
Updated by mfriedrich on 2014-01-27 19:24:00 +00:00 maybe helps |
Updated by mfriedrich on 2015-02-15 01:08:29 +00:00
I'm unable to reproduce this. During startup old stale downtimes are deleted, and therefore the event broker is triggered on every deletion. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/4809
Created by mfrosch on 2013-10-07 11:01:09 +00:00
Assignee: (none)
Status: Rejected (closed on 2015-02-15 01:08:29 +00:00)
Target Version: (none)
Last Update: 2015-02-15 01:08:29 +00:00 (in Redmine)
Sometimes Icinga don't catch the end of a downtime, e.g. when Icinga is don't at that moment.
The downtime itself stays inside the core and status.dat for a bit, and even the info comment.
After some time the core seems to cleanup that data, but no broker event is generated, so idomod doesn't know the downtime is now gone.
Considering for 1.10, if there is enough time to track it down.
The bug was initially opened against Icinga Web (#3822), and also see #4808 for not clearing that data on startup.
Relations:
The text was updated successfully, but these errors were encountered: