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

LLD is not correctly processing special characters in the formula for the calculated items.

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server (S)
    • Labels:
      None
    • Environment:
      Zabbix 2.4.5

      Description

      Example. We have an item prototype with the following formula:

      last("tom.cmd[jmxattr,{#TOM.JAVAHOME},\\"{#TOM.JMXHOST}:{#TOM.JMXPORT}\\",\\"Catalina:type=ThreadPool,name={#TOM.THPOOL}\\",connectionCount]",\\"\\",{#TOM.INSTANCE},\\"{$TOM.PASS}\\",{#TOM.JMXSSL})/last("tom.cmd[jmxattr,{#TOM.JAVAHOME},\\"{#TOM.JMXHOST}:{#TOM.JMXPORT}\\",\\"Catalina:type=ThreadPool,name={#TOM.THPOOL}\\",maxConnections,\\"\\",{#TOM.INSTANCE},\\"{$TOM.PASS}\\",{#TOM.JMXSSL}]")

      The low level discovery returns:

      "{#TOM.THPOOL}":"\\\"host-name-8888\\\""

      Zabbix will create a calculated item with this formula:

      last("tom.cmd[jmxattr,/usr/lib/jvm/jre-openjdk,\\"localhost:10000\\",\\"Catalina:type=ThreadPool,name=\\"host-name-8888\\"\\",connectionCount]",\\"\\",tomcat,\\"{$TOM.PASS}\\",true)/last("tom.cmd[jmxattr,/usr/lib/jvm/jre-openjdk,\\"localhost:10000\\",\\"Catalina:type=ThreadPool,name=\\"host-name-8888\\"\\",maxConnections,\\"\\",tomcat,\\"{$TOM.PASS}\\",true]")

      Item will go to unsupported state with an error:

      "Cannot evaluate function "last(\"",tomcat,"{$TOM.PASS}",true)": item "host:tom.cmd[jmxattr,/usr/lib/jvm/jre-openjdk,"localhost:10000","Catalina:type=ThreadPool,name="host-name-8888"",connectionCount]" does not exist."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg.ivanivskyi Oleg Ivanivskyi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: