-
Problem report
-
Resolution: Workaround proposed
-
Trivial
-
None
-
3.4.3
-
RedHat2.6.32-573
Steps to reproduce:
1.Has copied jboss-cli-client.jar from WF9(because of Java version 1.7) installation to zabbix_java/lib
2.Restarted java_gateway service
3. Created new host with jmx interface on port 9990
3.Created Item
OS Arch
jmx[java.lang:type=OperatingSystem,Arch]
service:jmx:remote+http://{HOST.CONN}:{HOST.PORT}
from log file:
2017-11-07 18:20:44.671 [pool-1-thread-3] WARN com.zabbix.gateway.SocketProcessor - error processing request com.zabbix.gateway.ZabbixException: java.net.MalformedURLException: Unsupported protocol: remote+http at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:97) ~[zabbix-java-gateway-3.4.3.jar:na] at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:63) ~[zabbix-java-gateway-3.4.3.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79] Caused by: java.net.MalformedURLException: Unsupported protocol: remote+http at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:357) ~[na:1.7.0_79] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267) ~[na:1.7.0_79] at com.zabbix.gateway.ZabbixJMXConnectorFactory$1.run(ZabbixJMXConnectorFactory.java:76) ~[zabbix-java-gateway-3.4.3.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_79] at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_79] ... 3 common frames omitted 2017-11-07 18:20:44.671 [pool-1-thread-3] DEBUG c.z.gateway.BinaryProtocolSpeaker - sending the following data in response: {"response":"failed","error":"java.net.MalformedURLException: Unsupported protocol: remote+http"}