[ZBX-21838] All actions being listed in Used in actions column in mediatype list Created: 2022 Oct 31  Updated: 2024 Nov 25  Resolved: 2024 Nov 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 5.0.29rc1, 6.0.10rc2, 6.2.4rc1, 6.4.0beta2
Fix Version/s: 6.0.34rc1, 7.0.4rc1, 7.2.0alpha1

Type: Problem report Priority: Trivial
Reporter: Andrejs Griščenko Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 2
Labels: actions, mediatypes
Remaining Estimate: Not Specified
Time Spent: 3h
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2024-07-26 at 21.30.35.png    
Issue Links:
Duplicate
Team: Team A
Sprint: S24-W34/35, S24-W48/49
Story Points: 0.5

 Description   

Steps to reproduce:

  1. Create 3 hosts "host1", "host2" and "host3" and assign them to a new host group "Hostgroup".
  2. Navigate to Administration -> General -> GUI.
  3. Set the value of "Max count of elements to show inside table cell" to 2.
  4. Navigate to Configuration -> Host groups and filter by host group "Hostgroup".
  5. Observed: host1, host2 and an ellipsis are displayed in the "Members" column.
  6. Navigate to Configuration -> Actions.
  7. Create 3 actions "action1", "action2" and "action3" with "Send message" operations to send using a specific mediatype, for example, "Email".
  8. Navigate to Administration -> Media types.
  9. Observed: the "Email" mediatype has all three actions listed in the "Used in actions" column.

Expected: "action1", "action2" and an ellipsis are displayed.



 Comments   
Comment by Brian van Baekel [ 2024 Jul 26 ]

We are talking here about this, right?

Or am I mixing up things here?

Comment by Andrejs Griščenko [ 2024 Jul 29 ]

brian.baekel, yes, this is the place. Actions here are displayed with no limits, while in other places the maximum number of elements in the cell depends on the settings.

Comment by Brian van Baekel [ 2024 Jul 29 ]

Thanks agriscenko!

It's not only without limits, but also actions are listed for mediatypes whilst they are not used at all in that action. Extremely confusing and I actually had a customer that cloned a mediatype, completely got lost "because it was suddenly used in all actions" and ended up restoring a backup of before their clone action...

IMO this should be fixed in such a way that only actions should be listed in that column if they are actually using that mediatype.

Comment by Andrejs Griščenko [ 2024 Jul 29 ]

brian.baekel, yes, starting from version 7.0, all actions with any operations that use the media type are listed in the column, including operations in which mediatype is used indirectly ("Send message via all media"). This was changed in ZBXNEXT-4165 and is now considered as expected behavior. Previously, only actions having operations in which a specific mediatype was used were displayed in the column.

Comment by Brian van Baekel [ 2024 Jul 29 ]

Thanks agriscenko, i understand the goal of ZBXNEXT-4165, and it makes sense. At the same time, I dispute this ZBXNEXT actually made it better; now it's showing a mediatype as 'used' whilst it never actually is used as it is not configured on a user profile as 'media'.

The other option, selecting multiple 'send to' in one single action step is not available, forcing either 'all' and accepting this strange media type page, or creating a massive overhead by defining many action steps each with their own 'send to'

Not sure what the best solution is in this case :'( 

Comment by Kevin Daudt [ 2024 Aug 07 ]

This affects us as well. We have a lot of actions (we have a dashboard where users can create their own subscriptions, which creates an action in the background.

These actions send problem alerts to specific media only, but the recovery operation is 'Notify all involved'. I suspect this makes the action included as well for all media types.

The result is that it takes several minutes to load the Media Types page for us.

Comment by Andrejs Griščenko [ 2024 Aug 07 ]

In this task, the only problem that will be fixed is that the number of actions in mediatype list in the "Used in actions" column does not take into account the "Max count of elements to show inside table cell" parameter.

In addition, but only for versions 7.0 and master, several visual improvements will be made for consistency with other places (host groups, template groups, proxies etc.):

  • a total number of actions will be added to mediatype and script lists to indicate in how many actions each mediatype and script is used;
  • in mediatype list, the color of action names will be changed to grey like it is done in script list.

The problem with displaying all actions, including operations in which mediatype is used indirectly, and possible performance related issues will be fixed separately. Please see ZBXNEXT-8690.

Comment by Andrejs Griščenko [ 2024 Aug 16 ]

Available in versions:

Comment by Martins Valkovskis [ 2024 Nov 07 ]

Updated documentation:

Generated at Fri Apr 04 14:46:12 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.