[ZBX-3892] Actions don't work for triggers created by LLD (from template) when action uses a condition: Host template = "Template_with_LLD" Created: 2011 Jun 17  Updated: 2017 May 30  Resolved: 2011 Oct 25

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.9.5 (alpha)
Fix Version/s: 1.9.7 (beta)

Type: Incident report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: dimir
Resolution: Fixed Votes: 0
Labels: actions, lld
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

latest trunk as usually



 Description   

Situation: LLD discovery rule (with items and trigger prototypes) created in some template. This template is linked to some Host. Real items and triggers are created and they work well.
Using the condition Host template = "Template_with_LLD" it's regular practice. Even for the items+triggers created by LLD. Yes?

But in such situation the actions don't work.
It's happened because trigger (created from prototype) "is inherited" not from template and from Discovery rule (which respectively inherited from the template). IMO.



 Comments   
Comment by dimir [ 2011 Oct 23 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3892

Comment by richlv [ 2011 Oct 25 ]

just a question, how exactly will this work with nested templates ?
let's say we have 3 templates t1<-t2<-t3 and a host h1 (t3 being the lowest level & linked to h1).

what exactly will be matched if condition will specify t1, t2 or t3 ? (functionally, i'd expect it to match for any of these being specified)

Comment by dimir [ 2011 Oct 25 ]

If the trigger prototype was created in t1 then yes, any template will match.

Comment by dimir [ 2011 Oct 26 ]

Fixed in pre-1.9.7, r22694.

Generated at Thu Mar 28 21:23:30 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.