-
New Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
5.0.16
-
None
In trigger based action, while using custom script we may use:
script.sh "{HOST.HOST}" "{ITEM.KEY1}" "{ITEM.VALUE1}" "{TRIGGER.DESCRIPTION}"
Action will fail if:
1) Item 'key_' also contains double quotes like: input["input"]
2) Trigger title contains double quotes
3) A metric is some sort of XML/HTML text
A workaround sometimes is applicable - to use single quotes:
script.sh '{HOST.HOST}' '{ITEM.KEY1}' '{ITEM.VALUE1}' '{TRIGGER.DESCRIPTION}'
However, if '{ITEM.VALUE1}' will contains both single and double quotes, then the workaround will fail.
Please give a platform which allows to escape special characters while expanding trigger based macros.