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

Add quote escaping for Macros in Alert Messages

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)
    • Environment:
      All

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              wiper Andris Zeila
              Reporter:
              Heykes Stefan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: