Hi!
We are running Zabbix 2.2.7 stack. For some reasons, I am unable to use the java gateway.
Zabbix Server
IP: 10.128.64.13
Packages:
zabbix-server-mysql 1:2.2.7-1+trusty
zabbix-frontend-php 1:2.2.5-1+trusty
/etc/zabbix/zabbix_server.conf
JavaGateway=10.0.54.47
JavaGatewayPort=10052
Port test to Java Gateway: nc -vz 10.0.54.47 10052
Connection to 10.0.54.47 10052 port [tcp/*] succeeded!
Zabbix Gateway
IP: 10.0.54.47
Packages:
zabbix-java-gateway 1:2.2.7-1+precise
/etc/zabbix/zabbix_java_gateway.conf
all defaults
/usr/sbin/zabbix_java/lib/logback.xml
<root level="debug">
Port test to Zabbix Agent: nc -vz 10.0.101.166 10055
Connection to 10.0.101.166 10055 port [tcp/*] succeeded!
Port test to JMX: nc -vz 10.0.101.166 11099
Connection to 10.0.101.166 11099 port [tcp/*] succeeded!
Zabbix Agent
IP: 10.0.101.166
Packages:
zabbix-agent-2.2.7-1.el5
/etc/zabbix/zabbix_agentd.conf
EnableRemoteCommands=1
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=50
DebugLevel=4
Timeout=10
ServerActive=zabbix-srv.domain.com
RefreshActiveChecks=60
StartAgents=1
Server=zabbix-srv.domain.com
ListenPort=10055
JVM has, among others jmx flags, -Dcom.sun.management.jmxremote.port=11099
JMX is correctly configured on the JVM, I can connect to it from a remote host using JConsole.
Host configuration in Zabbix FrontEnd
JMX interfaces:
IP 10.0.101.166
Port 11099
Item:
Name: jmx test
Type: JMX agent
Key: jmx["java.lang:type=Memory","HeapMemoryUsage.used"]
Host interface: 10.0.101.166 : 11099
Please note that the Zabbix Server cannot access 10.0.101.166 directly. All other items are of type "Zabbix agent (active)". These active items are working fine. For the JMX item, I expect Zabbix Server to query the Java Gateway, which will in turn query 10.0.101.166 over RMI.
The Java Gateway log level is set to debug and I see *nothing* in /var/log/zabbix/zabbix_java_gateway.log.
How to troubleshoot?
We are running Zabbix 2.2.7 stack. For some reasons, I am unable to use the java gateway.
Zabbix Server
IP: 10.128.64.13
Packages:
zabbix-server-mysql 1:2.2.7-1+trusty
zabbix-frontend-php 1:2.2.5-1+trusty
/etc/zabbix/zabbix_server.conf
JavaGateway=10.0.54.47
JavaGatewayPort=10052
Port test to Java Gateway: nc -vz 10.0.54.47 10052
Connection to 10.0.54.47 10052 port [tcp/*] succeeded!
Zabbix Gateway
IP: 10.0.54.47
Packages:
zabbix-java-gateway 1:2.2.7-1+precise
/etc/zabbix/zabbix_java_gateway.conf
all defaults
/usr/sbin/zabbix_java/lib/logback.xml
<root level="debug">
Port test to Zabbix Agent: nc -vz 10.0.101.166 10055
Connection to 10.0.101.166 10055 port [tcp/*] succeeded!
Port test to JMX: nc -vz 10.0.101.166 11099
Connection to 10.0.101.166 11099 port [tcp/*] succeeded!
Zabbix Agent
IP: 10.0.101.166
Packages:
zabbix-agent-2.2.7-1.el5
/etc/zabbix/zabbix_agentd.conf
EnableRemoteCommands=1
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=50
DebugLevel=4
Timeout=10
ServerActive=zabbix-srv.domain.com
RefreshActiveChecks=60
StartAgents=1
Server=zabbix-srv.domain.com
ListenPort=10055
JVM has, among others jmx flags, -Dcom.sun.management.jmxremote.port=11099
JMX is correctly configured on the JVM, I can connect to it from a remote host using JConsole.
Host configuration in Zabbix FrontEnd
JMX interfaces:
IP 10.0.101.166
Port 11099
Item:
Name: jmx test
Type: JMX agent
Key: jmx["java.lang:type=Memory","HeapMemoryUsage.used"]
Host interface: 10.0.101.166 : 11099
Please note that the Zabbix Server cannot access 10.0.101.166 directly. All other items are of type "Zabbix agent (active)". These active items are working fine. For the JMX item, I expect Zabbix Server to query the Java Gateway, which will in turn query 10.0.101.166 over RMI.
The Java Gateway log level is set to debug and I see *nothing* in /var/log/zabbix/zabbix_java_gateway.log.
How to troubleshoot?
Comment