Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22100

Trigger's event name doesn't work

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.2.6
    • Templates (T)
    • 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.

        1. zbx_export_templates.yaml
          90 kB
        2. Test.png
          Test.png
          10 kB
        3. image-2023-02-20-10-12-54-873.png
          image-2023-02-20-10-12-54-873.png
          4 kB
        4. Event Trigger.png
          Event Trigger.png
          3 kB

            bmickiewicz Bartosz Mickiewicz (Inactive)
            rockandstone Andrea Marconi
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: