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

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • None
    • Server (S)
    • None
    • Zabbix 2.4.5

      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."

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

              Created:
              Updated:
              Resolved: