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

Option to escape special characters while expanding macros

XMLWordPrintable

    • Icon: New Feature Request New Feature Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.0.16
    • Server (S)
    • 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.

            wiper Andris Zeila
            aigars.kadikis Aigars Kadikis
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: