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

add macro {FUNCTION.VALUE<1-9>} to capture i-th function in the trigger expression

    XMLWordPrintable

    Details

      Description

      We currently have macros like {ITEM.VALUE<1-9>} and {TRIGGER.VALUE}, which can be used in notifications to report the values of items and the whole trigger. For instance, the action message that comes with Zabbix by default contains the following fragment:

      Item values:
      
      1. {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
      2. {ITEM.NAME2} ({HOST.NAME2}:{ITEM.KEY2}): {ITEM.VALUE2}
      3. {ITEM.NAME3} ({HOST.NAME3}:{ITEM.KEY3}): {ITEM.VALUE3}
      

      This is very convenient and it suits a wide variety of triggers with at most three items.

      It would be nice to support macros {FUNCTION.VALUE<1-9>}, which would return the value of the i-th function in the trigger expression:

      {host:item.avg(5m)} > 1000 or {host:item.nodata(3m)} = 1
      

      Here, {FUNCTION.VALUE} and {FUNCTION.VALUE1} would expand to the result of avg(5m) function and {FUNCTION.VALUE2} would expand to the result of nodata(3m) function, which would allows us to understand the condition that triggered the problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              asaveljevs Aleksandrs Saveljevs
              Votes:
              18 Vote for this issue
              Watchers:
              16 Start watching this issue

                Dates

                Created:
                Updated: