[ZBXNEXT-5030] Add quote escaping for Macros in Alert Messages Created: 2019 Feb 12  Updated: 2019 Feb 12

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Minor
Reporter: Stefan Assignee: Andris Zeila
Resolution: Unresolved Votes: 0
Labels: actions, macros, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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.


Generated at Fri Apr 19 05:21:37 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.