[ZBX-9943] formula for action with "Custom expression" not updated after condition deletion - Breaks action Created: 2015 Oct 07 Updated: 2022 Oct 08 |
|
Status: | Confirmed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A), Documentation (D), Frontend (F) |
Affects Version/s: | 2.4.5 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Larry Dorman | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 1 |
Labels: | actions, customexpression, delete, documentation | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
vanilla Zabbix, MySQL db, linux (oel 6) |
Issue Links: |
|
Description |
1) Create trigger action with a custom expression such as "A and (B or C or D or E) and F and G and H and I" where B, C, D, and E are templates. 2) Delete template referenced by D Custom expression does not get automatically updated. That action will now fire for a variety of events that have nothing to do with the trigger. One must find and update the custom expression manually to get the action to quit firing. |
Comments |
Comment by Oleksii Zagorskyi [ 2015 Oct 08 ] |
Related issue ZBXNEXT-551. Key point here is custom expression. Even if you have custom expression with two members only "A and B", then deleting one of them leaves the custom expression unmodified in database (actions.formula) but it's not visible in frontend because with single condition, "Type of calculation" settings are not displayed at all and it's even worse. Hard to decide how it could be improved for custom expressions. If not fixed in code - then have to be additionally documented, definitely. Server side was not tested. CONFIRMED. |
Comment by Larry Dorman [ 2015 Oct 08 ] |
Prohibiting removal of templates used in custom expressions would put the burden on the admin and protect the system. |
Comment by James Cook [ 2016 Feb 09 ] |
I think things can be solved / prevented here by:
|