Hello to everyone!
can you help me with Semen's template?..
i configured/made/installed zabbix java gateway using file JMXItemChecker.java taken from https://gist.github.com/Cromeshnic/6...emchecker-java
I used template xml https://gist.github.com/Cromeshnic/6316503
but i cannot discover activemq instance...
zabbix_java.log says:
2015-01-09 03:15:25.030 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - starting to process incoming connection
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading Zabbix protocol header
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 8 bytes of data length
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 264 bytes of request data
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - received the following data in request:
{"request":"java gateway jmx","conn":"10.2.41.21","port":9012,"username":"u ser","password":"pswd","keys":["jmx.discovery[\"org.apache.activemq:BrokerName=*,Type=*,Destinat ion=*\",Name]","jmx.discovery[\"org.apache.activemq:BrokerName=*,Type=Broker\",B rokerName]"]}
2015-01-09 03:15:25.032 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - dispatched request to class com.zabbix.gateway.JMXItemChecker
2015-01-09 03:15:25.032 [pool-1-thread-5] DEBUG com.zabbix.gateway.JMXItemChecker - connecting to JMX agent at service:jmx:rmi:///jndi/rmi://10.2.41.21:9012/jmxrmi
2015-01-09 03:15:25.049 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - getting value for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=*,Destinati on=*",Name]'
2015-01-09 03:15:25.054 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - received value '
{ "data": [] }
' for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=*,Destinati on=*",Name]'
2015-01-09 03:15:25.054 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - getting value for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=Broker",Bro kerName]'
2015-01-09 03:15:25.055 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - received value '
{ "data": [] }
' for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=Broker",Bro kerName]'
2015-01-09 03:15:25.056 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - sending the following data in response: {"response":"success","data":[{"value":"
{\n \"data\": []\n}
"},{"value":"
{\n \"data\": []\n}
"}]}
2015-01-09 03:15:25.056 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - finished processing incoming connection.
so it looks like returned json array is empty...
connecting via jconsole works correctly.
Zabbix version is 2.4.1
thank you.
can you help me with Semen's template?..
i configured/made/installed zabbix java gateway using file JMXItemChecker.java taken from https://gist.github.com/Cromeshnic/6...emchecker-java
I used template xml https://gist.github.com/Cromeshnic/6316503
but i cannot discover activemq instance...
zabbix_java.log says:
2015-01-09 03:15:25.030 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - starting to process incoming connection
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading Zabbix protocol header
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 8 bytes of data length
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - reading 264 bytes of request data
2015-01-09 03:15:25.031 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - received the following data in request:
{"request":"java gateway jmx","conn":"10.2.41.21","port":9012,"username":"u ser","password":"pswd","keys":["jmx.discovery[\"org.apache.activemq:BrokerName=*,Type=*,Destinat ion=*\",Name]","jmx.discovery[\"org.apache.activemq:BrokerName=*,Type=Broker\",B rokerName]"]}
2015-01-09 03:15:25.032 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - dispatched request to class com.zabbix.gateway.JMXItemChecker
2015-01-09 03:15:25.032 [pool-1-thread-5] DEBUG com.zabbix.gateway.JMXItemChecker - connecting to JMX agent at service:jmx:rmi:///jndi/rmi://10.2.41.21:9012/jmxrmi
2015-01-09 03:15:25.049 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - getting value for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=*,Destinati on=*",Name]'
2015-01-09 03:15:25.054 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - received value '
{ "data": [] }
' for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=*,Destinati on=*",Name]'
2015-01-09 03:15:25.054 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - getting value for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=Broker",Bro kerName]'
2015-01-09 03:15:25.055 [pool-1-thread-5] DEBUG com.zabbix.gateway.ItemChecker - received value '
{ "data": [] }
' for item 'jmx.discovery["org.apache.activemq:BrokerName=*,Type=Broker",Bro kerName]'
2015-01-09 03:15:25.056 [pool-1-thread-5] DEBUG c.z.gateway.BinaryProtocolSpeaker - sending the following data in response: {"response":"success","data":[{"value":"
{\n \"data\": []\n}
"},{"value":"
{\n \"data\": []\n}
"}]}
2015-01-09 03:15:25.056 [pool-1-thread-5] DEBUG com.zabbix.gateway.SocketProcessor - finished processing incoming connection.
so it looks like returned json array is empty...
connecting via jconsole works correctly.
Zabbix version is 2.4.1
thank you.