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

Tags as macro (or dynamic macro) in trigger name and description

    XMLWordPrintable

    Details

      Description

      For now we are using too complicated trigger names with macro functions to display data from SNMP traps, like this:

      Unknown SNMP trap is received ({{ITEM.VALUE}.regsub("DISMAN-EVENT-MIB::sysUpTimeInstance\s+Timeticks:\s+((\d+))", "\1")}) {{ITEM.VALUE}.regsub("SNMPv2-MIB::snmpTrapOID\.0\s+\s+(.*)", "\1")}

      There is only two variables is getting from SNMP trap, but string is not readable and too long.

      E.g. trigger name field is only 255 chars.

      I'm think would be great to implement using tags as macro (or dynamic macro) in trigger name and description, then our trigger name may like this:

      Unknown SNMP trap is received ({TAGS.Timeticks}) {TAGS.OID}

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            easemerikov@greenatom.ru Eugene Semerikov
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: