-
Incident report
-
Resolution: Duplicate
-
Blocker
-
None
-
None
-
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."
- duplicates
-
ZBX-9458 discovery macros are not quoted correctly in calculated item expressions
- Closed