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

Add {<macro>.<func>(<params>)} macro syntax validation in a trigger name

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 4.0 (plan)
    • Frontend (F)

      It would be awesome to have some sort of validation for {<macro>.<func>(<params>)} macro in a trigger name.


      Examples (trigger name with an issue: e.g. missing closing bracket or there is not escaped character):

      Result: {{ITEM.VALUE}.regsub(([0-9]),\1)}
      Result: {{ITEM.VALUE}.regsub("("[0-9]")",\1)}
      Result: {{ITEM.VALUE}.regsub("([0-9])",\1)

      Result will look like this:

      Result: {test number is 5.regsub("([0-9])",\1)

      imagine if you are using this macro for the log file or SNMP traps monitoring. Zabbix will display "as is" log records or traps in the problem name (see 2017.55.44.png screenshot) instead of extracted value ("2017.59.23.png").

            zabbix.dev Zabbix Development Team
            oleg.ivanivskyi Oleg Ivanivskyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: