-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.2.6
-
OS: Ubuntu 20.04
Zabbix Server: 6.2.4
Good afternoon,
I have found a problem about trigger's event name.
I have a trigger which is definedin a template: it checks the value of an item (it must be different from 1).
I have to use {?last(//obj_name-0)} as expression macro because the trigger is definied in a template and so I can't use {?last(/host/obj_name-0)}.
Event name | Object status NOT OK ({?last(//obj_name-0)}) |
---|---|
Expression of trigger | last(/Template_Example/obj_status-0)<>1 |
Then I apply the template to n-hosts...
The trigger fires on host X, I get the result of the attached image: the expression macro returns the value equivalent to {ITEM.LASTVALUE} instead of the value of the expression macro!
Obviusly if I create a clone of the templated item/trigger and then I specify the name of the host in the expression macro of event name ({?last(/host/obj_name-0)}), it will works.
I hope someone could help.