Ad Widget

Collapse

Macro Function Within Tags Ignored

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Flash619
    Junior Member
    • Aug 2017
    • 2

    #1

    Macro Function Within Tags Ignored

    I'm running Zabbix 3.4.1 and have a trigger with some tags in a template. The values for the tags should be automatically generated from the hostname of the host triggering the events. I assign the template to hosts, however the macro function within the tags value is ignored entirely.

    In example:

    For my Template Trigger I have:

    Tag Name: Device Color
    Tag Value: {{HOST.NAME}.iregsub("^\w+-(\w+)", "\1")}

    But it will be shown as {my-blue-server.iregsub("^\w+-(\w+)", "\1")} on the dashboard and under the problems tab.

    Based on the 3.4 documentation I've read, macro functions should be supported within tags, and are even shown as an example usage under tag configuration for 3.4.

    Am I doing something wrong?
Working...