[ZBX-25717] Inherited tags not working on triggers created by a Trigger Prototype Created: 2024 Dec 10  Updated: 2025 Apr 02  Resolved: 2025 Mar 18

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 7.0.5, 7.0.6
Fix Version/s: 7.0.11rc1, 7.2.5rc1, 7.4.0beta1 (master)

Type: Problem report Priority: Minor
Reporter: Gustavo Dias Assignee: Eliza Sekace
Resolution: Fixed Votes: 5
Labels: Discovery, tags
Remaining Estimate: 0h
Time Spent: 16h 50m
Original Estimate: 10h

Attachments: PNG File 25717-1.png     PNG File 25717-2.png     PNG File 25717-3.png     PNG File 25717-4.png     PNG File image-2025-01-28-10-06-53-727.png    
Issue Links:
Causes
caused by ZBXNEXT-8453 Make Trigger and prototype configurat... Closed
Duplicate
Related
Team: Team B
Sprint: S25-W4/5, S25-W6/7, S25-W8/9, S25-W10/11, S25-W12/13
Story Points: 1.25

 Description   

Recencly updated from 6.4 to 7.0.5 .
Templates are still in version 6.4 , planning to upgrade. 

Can someone reproduce this issue?

Steps to reproduce:

  1. Check any template with discovery rule (Linux default template with Mounted Filesystem Discovery)
  2. Add tags to the template
  3. Check trigger prototype Inherited and trigger tags (this is just to double check if the tags are present, in the prototype as inherited tags from the template) 
  4. Add a host to the template, let the discovery process discover the items and create the triggers.
  5. At the host level, open the triggers created by the discovery process. 

Result:
The triggers created by discovery process do not have tags from the template.
This only happens in triggers, item inherit the tags correctly. 
Expected:
Tags should also be inherited by triggers. 

Thank you. 



 Comments   
Comment by Gustavo Dias [ 2024 Dec 10 ]

Bumped version to 7.0.6 for a quick test and same issue. 

Comment by Andrey Kunitsyn [ 2024 Dec 11 ]

I'm curious why the priority is so low? It's a serious regression.

I have several support teams, every team is responsible for own application. The applications have own template and tags based on guidelines https://www.zabbix.com/documentation/guidelines/en/thosts/configuration/templates#tags

Now the process is totally broken. The team's dashboards do not show problems. The teams do not get notifications about their applications.

"Applications" was replaced by Tags in 5.4. Now there is no other way to filter something by template.

Comment by Gustavo Dias [ 2024 Dec 11 ]

abyss , my workaround was to go into each trigger prototype and add tags to the trigger . To my surprise it did not crash with the ones you can see inherited from the template. Got to remember to remove them before applying a patch. 

Using the mass update was fine in my case, but maybe you have a bigger use case and using api is more practical. 

Comment by Andrey Kunitsyn [ 2024 Dec 11 ]

gdzias agree. it is workaround, but also I need to add tags to all Trigger prototypes in all Discovery rules in every template. It's possible, but some amount extra work now and after patch.

Also I'm not sure how it influences on the database size and speed of generating problems.

Comment by Gustavo Dias [ 2025 Jan 24 ]

Also found that it is not possible to filter Items by inherited tags. 

If you go to Hosts -> select one host items -> reset query -> and search for tags (that you know hosts inherit) , no result is displayed for items that have inherited tags one is trying to search for. 

Most likely it is all related to the same root cause, at least I hope so. 

Comment by Eliza Sekace [ 2025 Jan 28 ]

Fixed in development branches:

Comment by Alexander Vladishev [ 2025 Jan 28 ]

gdzias, currently, there is no option to filter by inherited tags. However, we are working on this functionality, and it is likely to be included in the next major release.

Comment by Juho Ylikorpi [ 2025 Feb 17 ]

It seems that this is still broken if tags should be inherited from host prototype template.

Editing trigger show inherited tags, but tags are not added to problems and are not visible via API.

Comment by Mateusz Dampc [ 2025 Mar 03 ]

Any update about this? When we might expect to fix this bug? Our customers which relay on trigger prototypes tags cannot get notifications, because problems don't have proper tags in action condition.

Comment by Erik Deneve [ 2025 Mar 13 ]

We’ve encountered the same bug, and it’s quite frustrating (even blocking) since our permissions and actions depend on these tags.

Comment by dimir [ 2025 Mar 13 ]

This issue is ongoing the testing stage. It will be released ASAP. Stay tuned!

Comment by Eliza Sekace [ 2025 Mar 17 ]

Available in:

Comment by Andrey Kunitsyn [ 2025 Mar 31 ]

Hello
I've updated to 7.0.11
I'm still having problems with exposing template tags to problems.

They are not exposed from Triggers prototypes, but exposed from template triggers

 

I see now that they are inherited

But not exposed to problems

Also I do not understand from where comes `component: mssql-job` It is not seen in Trigger inherited tags.

But I'm pretty sure that it is related to update from 6.4 to 7.0

Comment by Erik Deneve [ 2025 Mar 31 ]

We are still experiencing the same issue even after upgrading to version 7.2.5.

Comment by Alexander Vladishev [ 2025 Mar 31 ]

erik.deneve, Could you please provide more details about the issue?
Are you experiencing it during problem generation, or is it related to how inherited tags are displayed in the trigger configuration form?

Comment by Erik Deneve [ 2025 Apr 01 ]

Hi Alexander,

I’ve included all the details in a commercial support ticket. Starting from version 7.2.5, the tags displayed in the trigger configuration form are correct. However, the event generation is still not applying these tags to the events. It's odd because it works as expected for some LLD triggers, but not for others (At the moment, we can't determine when it works and when it doesn't). I suspect indeed this issue was introduced during the upgrade from version 6.4 to 7.2.

For more information, including SQL queries and screenshots, please refer to PR-8187.

Best regards,
Erik

Comment by Alexander Vladishev [ 2025 Apr 01 ]

abyss, you're describing an issue that occurs during event (problem) generation on the backend side. This ticket is specifically about the display of inherited tags in the trigger prototype form.

To avoid mixing different issues, please create a separate ticket for this.
If that’s inconvenient for you, just let me know — I’ll create the ticket based on your comment.

At the moment, I'm trying to reproduce this issue, but so far without success.

Does it occur consistently for all triggers created via discovery rules, or only for some of them?

Comment by Andrey Kunitsyn [ 2025 Apr 01 ]

I've created a new issue ZBX-26259

Comment by Alexander Vladishev [ 2025 Apr 01 ]

abyss, Thank you!

Let’s continue the discussion about problem generation with missing tags in the new issue ZBX-26259.

Generated at Mon Apr 07 11:37:18 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.