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

Trigger's event name doesn't work

    XMLWordPrintable

Details

    • Problem report
    • Status: Reopened
    • Trivial
    • Resolution: Unresolved
    • 6.2.6
    • None
    • Templates (T)
    • OS: Ubuntu 20.04
      Zabbix Server: 6.2.4

    Description

      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.

      Attachments

        1. Event Trigger.png
          Event Trigger.png
          3 kB
        2. Test.png
          Test.png
          10 kB
        3. zbx_export_templates.yaml
          90 kB

        Activity

          People

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

            Dates

              Created:
              Updated: