[ZBX-8473] Removing events when remove trigger Created: 2014 Jul 15  Updated: 2017 May 30  Resolved: 2014 Aug 26

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A), Server (S)
Affects Version/s: 2.0.12, 2.2.4
Fix Version/s: 2.2.6rc1, 2.3.3

Type: Incident report Priority: Major
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-6269 Optimize deleting events from the fro... Closed

 Description   

Zabbix frontend and Zabbix server remove all events from events table when a trigger is removed (or not discovered object in case of LLD). It should be processed by housekeeper process.



 Comments   
Comment by Krists Krigers (Inactive) [ 2014 Jul 16 ]

[A] implemented and committed in r47378, branch svn://svn.zabbix.com/branches/dev/ZBX-8473 (copy of 2.2).

Comment by Oleg Egorov (Inactive) [ 2014 Jul 18 ]

(1) [F] String changes?

kristsk No string changes. RESOLVED.

oleg.egorov CLOSED

Comment by Alexander Vladishev [ 2014 Jul 18 ]

(2) [F] Please do not add deleted records into the "housekeeper" table. "delete from events ..." should be simply removed from code.

Housekeeper removes events by using global options like "Trigger data storage period (in days)".

kristsk RESOLVED in r47455.

oleg.egorov In CTrigger.php:1232 still exist DB::delete('events'...

kristsk RESOLVED in r47456.

oleg.egorov CLOSED

Comment by Oleg Egorov (Inactive) [ 2014 Jul 21 ]

Related frontend issue ZBX-8500

Comment by Oleg Egorov (Inactive) [ 2014 Jul 21 ]

Frontend TESTED.

Comment by dimir [ 2014 Jul 22 ]

Successfully tested. Please review my changes in r47526.

sasha Thanks! CLOSED

Comment by Alexander Vladishev [ 2014 Jul 25 ]

Available in pre-2.2.6 r47601 and pre-2.3.3 (trunk) r47603.

Comment by richlv [ 2014 Jul 26 ]

(3) surely the improvement side qualifies for whatsnew

martins-v Added in https://www.zabbix.com/documentation/2.2/manual/introduction/whatsnew226. Please review. RESOLVED.

<richlv> thanks, CLOSED

Comment by Pavels Jelisejevs (Inactive) [ 2014 Jul 29 ]

(4) This needs to be noted in the API changelog.

kristsk RESOLVED. See https://www.zabbix.com/documentation/2.2/manual/api/changes_2.2.

jelisejev Thanks, CLOSED.

Generated at Tue Apr 16 09:46:41 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.