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

Option to escape special characters while expanding macros

    XMLWordPrintable

Details

    • New Feature Request
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 5.0.16
    • None
    • Server (S)
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: