Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-10361

Support for macros in Trigger URL

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • Templates (T)
    • None

      The {ITEM.ID} macro does not resolve when used in a Trigger "Menu entry URL" value. I can see this requested multiple times in other feature requests, but I can see in the latest documentation it's still not supported. According to documentation, the only Item Macros supported are:

      Item macros: [

      {ITEM.LASTVALUE*}

      |https://www.zabbix.com/documentation/current/en/manual/appendix/macros/supported_by_location#itemlastvalue], [

      {ITEM.LOG.*}

      |https://www.zabbix.com/documentation/current/en/manual/appendix/macros/supported_by_location#itemlogage], [

      {ITEM.VALUE*}

      |https://www.zabbix.com/documentation/current/en/manual/appendix/macros/supported_by_location#itemvalue]

      What I am trying to achieve, is for {TRIGGER.URL} (used in an email template) to resolve to a link to a graph of the latest data. e.g.

      {$FRONTEND.URL}/zabbix.php?action=chart.view&itemids[]={ITEM.ID1}&hostid={HOST.ID}

      I'm aware that I could amend our Email template to include a something like the above, but this is a global change applying to all emails. Sometimes I want the link in an email notification to show different things, depending on what the trigger is; so changing it at the email template level is not really useful. There is also instances where a trigger has multiple items in it, and I want to specify which of the items I want to graph, so again a global level setting for this wouldn't work.

      There are requests for this to be added going back 10 years or so, and you've already got support for some of the item macros, so is it not too much work to add support for ITEM.ID?

            mgeneralova Marina Generalova
            jackmatthews1993 Jack Matthews
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: