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

$1 macro in trigger description doesn't expand user macro for {TRIGGER.NAME} in action message

    Details

      Description

      $1 macro in trigger description can be used to refer to constant of trigger expression.
      It works if the constant is fixed value, but it doesn't work with user defined macro for {TRIGGER.NAME} in action message

      This works as expected:

      Trigger description: CPU user time is more than $1%
      Trigger expression: {hostname:system.cpu.util[,user]}>50
      Result of {TTIGGER.NAME} in action: CPU user time is more than 50%
      

      This also works as expected:

      Trigger description: CPU user time is more than {$CPU_LIMIT}%
      Trigger expression: {hostname:system.cpu.util[,user]}>{$CPU_LIMIT}
      Result of {TTIGGER.NAME} in action: CPU user time is more than 50%
      

      This doens't work:

      Trigger description: CPU user time is more than $1%
      Trigger expression: {hostname:system.cpu.util[,user]}>{$CPU_LIMIT}
      Result of {TTIGGER.NAME} in action: CPU user time is more than %
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kodai Kodai Terashima
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: