Hi folks, i can't connect Zabbix server (monitoring tool) to Terracotta.
Versions
Zabbix 2.2.3
Zabbix-Java-Gateway 2.2.3
Terracotta Server Array: 3.7.5
Zabbix and Zabbix java gateway are remote.
Zabbix connect via JMX to servers, thanks to Zabbix-Java-Gateway in whose log:
2014-06-26 03:49:09.214 [pool-1-thread-2] WARN com.zabbix.gateway.SocketProcessor - error processing request
com.zabbix.gateway.ZabbixException: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:100) ~[zabbix-java-gateway-2.2.3.jar:na]
at com.zabbix.gateway.SocketProcessor.run(SocketProcessor.java:63) ~[zabbix-java-gateway-2.2.3.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) ~[na:1.7.0_55]
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268) ~[na:1.7.0_55]
at com.zabbix.gateway.JMXItemChecker.getValues(JMXItemChecker.java:92) ~[zabbix-java-gateway-2.2.3.jar:na]
... 4 common frames omitted
Caused by: javax.naming.CommunicationException: null
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118) ~[na:1.7.0_55]
at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203) ~[na:1.7.0_55]
at javax.naming.InitialContext.lookup(InitialContext.java:411) ~[na:1.7.0_55]
at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1936) ~[na:1.7.0_55]
at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1903) ~[na:1.7.0_55]
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:286) ~[na:1.7.0_55]
... 6 common frames omitted
Caused by: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:248) ~[na:1.7.0_55]
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) ~[na:1.7.0_55]
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341) ~[na:1.7.0_55]
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) ~[na:1.7.0_55]
at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114) ~[na:1.7.0_55]
... 11 common frames omitted
I think Terracotta is well configured because I can run jconsole without problem via:
jconsole -J-Djava.class.path="/usr/local/terracotta/terracotta-3.7.5/lib/tc.jar:/usr/lib/jvm/java-7-oracle/lib/jconsole.jar"
I tried adding tc.jar to the java gateway classpath but nothing happens.
Firewall is properly configured