[ZBX-12434] No one clear missed objects from problem Created: 2017 Jul 28 Updated: 2024 Apr 10 Resolved: 2017 Sep 08 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A), Server (S) |
Affects Version/s: | 3.2.7 |
Fix Version/s: | 3.2.8rc1, 3.4.2rc1, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Alexey Pustovalov | Assignee: | Vladislavs Sokurenko |
Resolution: | Fixed | Votes: | 0 |
Labels: | problem, trigger | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||||||||||
Team: | Team A | ||||||||||||||||
Sprint: | Sprint 13, Sprint 14, Sprint 15, Sprint 16 | ||||||||||||||||
Story Points: | 3 |
Description |
Currently only housekeeper can remove old records from problem table. It removes already closed problems older than 24 hours. If object (trigger, item, lld rule) is removed with active problem, the record will be removed only with its own event. |
Comments |
Comment by Andrea Biscuola (Inactive) [ 2017 Jul 28 ] |
The root cause of the problem is that the housekeeper only delete problems that are actually resolved. There are two solutions to this: 1 - Modify the housekeeper for checking if an active problem is associated with an object in some way and if not, delete the record. 2 - Create a user defined function in the database, executed by an associated trigger for EVERY table involved (I don't know exactly which ones, that need to be analyzed) upon a DELETE statement of an object, for deleting the corresponding problem records from the database automatically, without need to put the logic in the zabbix server or in the front-end. Events and problems with proper relations (associated with an existing item), should continue to be managed by the housekeeper. Personally, I would opt for solution no. 2, as this problem is not really application level logic, but more data integrity logic. Also, performance wise, it will be much more efficient to let the database engine do what it's good for (keeping data consistent and throw out garbage) |
Comment by Andris Zeila [ 2017 Aug 30 ] |
Successfully tested |
Comment by Andris Zeila [ 2017 Sep 05 ] |
Successfully tested |
Comment by Vladislavs Sokurenko [ 2017 Sep 05 ] |
Fixed in: |
Comment by richlv [ 2017 Nov 01 ] |
there seems to be a lack of a description on which proposed solution was chosen, if any. |
Comment by Vladislavs Sokurenko [ 2017 Nov 01 ] |
Please see housekeeper changes in https://www.zabbix.com/documentation/3.4/manual/installation/upgrade_notes_342#housekeeper_changes |
Comment by richlv [ 2017 Nov 01 ] |
thank you. it is useful to have such information in issues, quoting here :
still, it is not completely clear. it says "deleting an item/trigger will also delete events and problems generated by that item/trigger". additionally, it talks about "problems generated by that item/trigger" - can problems be generated by items ? such a possibility is not mentioned in https://www.zabbix.com/documentation/3.4/manual/web_interface/frontend_sections/monitoring/problems - if that is true, it might be worth removing "item" occurrences in that section |
Comment by Vladislavs Sokurenko [ 2017 Nov 01 ] |
only upon the next housekeeper run
it's related to unsupported state |
Comment by Oleksii Zagorskyi [ 2019 Apr 25 ] |
JustĀ a note: Looks like it's also not good in the article to suggest to set "ALTER TABLE housekeeper ENGINE = BLACKHOLE;" as we lose current fix effect. |