Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-9458

discovery macros are not quoted correctly in calculated item expressions

    Details

      Description

      Suppose we have the following item prototype:

      echo[{#VALUE}]
      

      If the value of {#VALUE} macro is "quoted" (quotes are part of the value), then in the discovered item key the expanded macro is quoted correctly:

      echo["\"quoted\""]
      

      However, suppose we have a calculated item prototype with the following expression:

      strlen(echo[{#VALUE}])
      

      In this case, expression of the discovered calculated item will be the following, which is not correct:

      strlen(echo["quoted"])
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                asaveljevs Aleksandrs Saveljevs
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: