Настроил мониторинг jmx. Большинство параментров удалось считывать, но есть такие который не могу вытягивать. Вот лог одной из неудач:
Всяко варьировал кавычки и экранировал точки. Результат один. Кто нибудь сталкивался с подобным?
2014-03-26 21:01:25.303 [pool-1-thread-1] debug com.zabbix.gateway.socketprocessor - starting to process incoming connection
2014-03-26 21:01:25.303 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading zabbix protocol header
2014-03-26 21:01:25.303 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading 8 bytes of data length
2014-03-26 21:01:25.304 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading 177 bytes of request data
2014-03-26 21:01:25.304 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - received the following data in request: {
"request":"java gateway jmx",
"conn":"10.112.122.45",
"port":9696,
"keys":["jmx[\"catalina:type=threadpool,name=http-bio-localhost\/127.0.0.1-8080,currentthreadsbusy\"]"]}
2014-03-26 21:01:25.304 [pool-1-thread-1] debug com.zabbix.gateway.socketprocessor - dispatched request to class com.zabbix.gateway.jmxitemchecker
2014-03-26 21:01:25.304 [pool-1-thread-1] debug com.zabbix.gateway.jmxitemchecker - connecting to jmx agent at service:jmx:rmi:///jndi/rmi://10.112.122.45:9696/jmxrmi
2014-03-26 21:01:25.309 [pool-1-thread-1] debug com.zabbix.gateway.itemchecker - getting value for item 'jmx["catalina:type=threadpool,name=http-bio-localhost/127.0.0.1-8080,currentthreadsbusy"]'
2014-03-26 21:01:25.310 [pool-1-thread-1] debug com.zabbix.gateway.itemchecker - caught exception for item 'jmx["catalina:type=threadpool,name=http-bio-localhost/127.0.0.1-8080,currentthreadsbusy"]'
com.zabbix.gateway.zabbixexception: Required key format: Jmx[<object name>,<attribute name>]
at com.zabbix.gateway.jmxitemchecker.getstringvalue(j mxitemchecker.java:121) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.itemchecker.getjsonvalue(itemch ecker.java:88) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.jmxitemchecker.getvalues(jmxite mchecker.java:96) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.socketprocessor.run(socketproce ssor.java:63) ~[zabbix-java-gateway-2.2.2.jar:na]
at java.util.concurrent.threadpoolexecutor.runworker( threadpoolexecutor.java:1146) ~[na:1.6.0_30]
at java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) ~[na:1.6.0_30]
at java.lang.thread.run(thread.java:701) ~[na:1.6.0_30]
2014-03-26 21:01:25.311 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - sending the following data in response: {"response":"success","data":[{"error":"required key format: Jmx[<object name>,<attribute name>]"}]}
2014-03-26 21:01:25.311 [pool-1-thread-1] debug com.zabbix.gateway.socketprocessor - finished processing incoming connection
2014-03-26 21:01:25.303 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading zabbix protocol header
2014-03-26 21:01:25.303 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading 8 bytes of data length
2014-03-26 21:01:25.304 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - reading 177 bytes of request data
2014-03-26 21:01:25.304 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - received the following data in request: {
"request":"java gateway jmx",
"conn":"10.112.122.45",
"port":9696,
"keys":["jmx[\"catalina:type=threadpool,name=http-bio-localhost\/127.0.0.1-8080,currentthreadsbusy\"]"]}
2014-03-26 21:01:25.304 [pool-1-thread-1] debug com.zabbix.gateway.socketprocessor - dispatched request to class com.zabbix.gateway.jmxitemchecker
2014-03-26 21:01:25.304 [pool-1-thread-1] debug com.zabbix.gateway.jmxitemchecker - connecting to jmx agent at service:jmx:rmi:///jndi/rmi://10.112.122.45:9696/jmxrmi
2014-03-26 21:01:25.309 [pool-1-thread-1] debug com.zabbix.gateway.itemchecker - getting value for item 'jmx["catalina:type=threadpool,name=http-bio-localhost/127.0.0.1-8080,currentthreadsbusy"]'
2014-03-26 21:01:25.310 [pool-1-thread-1] debug com.zabbix.gateway.itemchecker - caught exception for item 'jmx["catalina:type=threadpool,name=http-bio-localhost/127.0.0.1-8080,currentthreadsbusy"]'
com.zabbix.gateway.zabbixexception: Required key format: Jmx[<object name>,<attribute name>]
at com.zabbix.gateway.jmxitemchecker.getstringvalue(j mxitemchecker.java:121) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.itemchecker.getjsonvalue(itemch ecker.java:88) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.jmxitemchecker.getvalues(jmxite mchecker.java:96) ~[zabbix-java-gateway-2.2.2.jar:na]
at com.zabbix.gateway.socketprocessor.run(socketproce ssor.java:63) ~[zabbix-java-gateway-2.2.2.jar:na]
at java.util.concurrent.threadpoolexecutor.runworker( threadpoolexecutor.java:1146) ~[na:1.6.0_30]
at java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) ~[na:1.6.0_30]
at java.lang.thread.run(thread.java:701) ~[na:1.6.0_30]
2014-03-26 21:01:25.311 [pool-1-thread-1] debug c.z.gateway.binaryprotocolspeaker - sending the following data in response: {"response":"success","data":[{"error":"required key format: Jmx[<object name>,<attribute name>]"}]}
2014-03-26 21:01:25.311 [pool-1-thread-1] debug com.zabbix.gateway.socketprocessor - finished processing incoming connection