Good afternoon,
I have found a problem about trigger's event name.
I have a trigger which is defined in a template: it checks the value of an item (it must be different from 1).
I should 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)}.
Version of Zabbix Server: 6.2.4
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 don't know how to fix this.I hope someone could help
I have found a problem about trigger's event name.
I have a trigger which is defined in a template: it checks the value of an item (it must be different from 1).
I should 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)}.
Version of Zabbix Server: 6.2.4
| 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 don't know how to fix this.I hope someone could help
Comment