[ZBXNEXT-551] Display a message when action is disabled automatically when we delete something it references Created: 2010 Nov 04 Updated: 2024 Feb 01 |
|
Status: | Open |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Frontend (F) |
Affects Version/s: | 1.8.2, 1.8.3, 1.8.4, 2.0.0 |
Fix Version/s: | None |
Type: | New Feature Request | Priority: | Major |
Reporter: | Simon | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 21 |
Labels: | actions, conditions, consistency, unsquashable, usability | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
Description |
If we delete a 'hostgroup' which is in an 'action', then the 'action' is disabled automatically. It's not stupid but i wasn't expecting this. ZBXNEXT-105 lists many more cases |
Comments |
Comment by richlv [ 2013 Dec 17 ] |
(1) also templates should be handled the same way |
Comment by richlv [ 2013 Dec 17 ] |
(2) also hosts should be handled the same way |
Comment by richlv [ 2013 Dec 17 ] |
(3) also triggers should be handled the same way |
Comment by richlv [ 2013 Dec 17 ] |
|
Comment by Pavels Jelisejevs (Inactive) [ 2014 Jan 31 ] |
Just displaying a message may not be the best approach, because when deleting stuff in bulk, it may easily get lost in other messages. |
Comment by richlv [ 2014 Mar 18 ] |
|
Comment by richlv [ 2014 Mar 18 ] |
as for the message, ideally i'd like to see a separate confirmation page or popup, showing which actions are affected by the current deletion |
Comment by Oleksii Zagorskyi [ 2015 Oct 08 ] |
it's even worse for actions with custom expressions, see ZBX-9943 |
Comment by richlv [ 2016 Apr 03 ] |
this seems to be more nasty than i thought initially. it might be a good idea to check your actions and see whether any important ones haven't been silently disabled |
Comment by richlv [ 2016 Apr 15 ] |
there was some interest on IRC in monitoring an important action by ID, and alerting if it suddenly gets disabled. a quick example on how that could be achieved (probably from cron) at https://github.com/whosgonna/Zabbix-Tiny.pm/blob/master/examples/example_check_action_by_id.pl |
Comment by Oleksii Zagorskyi [ 2019 Mar 21 ] |
Sad thing that it does NOT log to audit log too. (host group deletion, used in a condition). Interesting that an audit message "Action disabled due to deletion of user." will be actually logged. UPDATE on 2023-10-26, using version 6.4.5. User "udel" is used in "Report problems to Zabbix administrators del" action. It happens also if the user/group is not the only recipient in the action, which is weird actually is wrong behavior. |
Comment by dimir [ 2019 Sep 27 ] |
Showing something in frontend wouldn't help when using API. I suggest not allowing to delete something that is referenced in action condition. |
Comment by Oleksii Zagorskyi [ 2023 Oct 26 ] |
Just confirming that using version 6.4.5 a host deletion silently disables the action and does not leave any sign in audit log too. |
Comment by Michael Wery [ 2024 Feb 01 ] |
As stated in
|
Comment by dimir [ 2024 Feb 01 ] |
There is already a reference check in the API: All that needs to be done is instead of disabling an action return an error. Thanks to gcalenko for checking it. |
Comment by dimir [ 2024 Feb 01 ] |
Related issue: ZBX-23760 |