[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Can't connect Zabbix to Terracotta via JMX  XML
Forum Index -> General
Author Message
canos

neo

Joined: 12/14/2011 03:57:25
Messages: 3
Offline

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

Any idea?
teck

seraphim
[Avatar]
Joined: 05/24/2006 15:03:25
Messages: 1128
Offline

from that exception is sounds zabbix is configured to assume the terracotta jmx server speaks JRMP.

If you're inputting a jmx service url to zabbix you might want to try something like:

service:jmx:jmxmp://1.2.3.4:9520

Where 1.2.3.4 is your terracotta server. You might potentially also need the jmxremote_optional jar from our kit

good luck

Tim Eck (terracotta engineer)
canos

neo

Joined: 12/14/2011 03:57:25
Messages: 3
Offline

Thanks for your answer Erik, it seems you're right
Someone file this kind of bug

https://support.zabbix.com/browse/ZBXNEXT-1274 <- vote to get this issue fixed asap

Closed thread
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team