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

Add quote escaping for Macros in Alert Messages

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Server (S)
    • All

      For custom alert scripts that are integrated with other pieces (in our case a ticket tracker) it would be nice if macro values could be correctly escaped. For example we have a operation message like this which should be valid JSON:

      {"desc": "{TRIGGER.DESCRIPTION}",
      "id": "{EVENT.ID}",
      "triggerid": "{TRIGGER.ID}",
      "hostname": "{HOST.NAME}"}

       

      However if there should be any quotes in TRIGGER.DESCRIPTION it will not be valid JSON - so it would be nice to have a possibility to have a kind of escaped macro expansion here.

            wiper Andris Zeila
            Heykes Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: