Ad Widget

Collapse

Trigger's event name doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rockandstone
    Junior Member
    • Mar 2021
    • 24

    #1

    Trigger's event name doesn't work

    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
    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
    Attached Files
    Last edited by rockandstone; 15-12-2022, 18:22.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Does {?last(/{HOST.HOST}/obj_name-0)} work?

    Markku

    Comment

Working...