我已经成功地在ubuntu14.0上安装了Zabbix3.2服务器,主机上的Z是green.Unfortunately,JMX是红色。
Zabbix Server : 192.168.1.112 Linux Server with tomcat : 12.8.9.20
关注https://www.zabbix.com/forum/showpos...00&postcount=7
步骤1:创建主机或将JMX接口添加到现有的主机。步骤2:将Zabbix代理添加到tomcat服务器(12.8.9.20)步骤3:配置Zabbix代理步骤4:安装Os Linux模板。步骤5:在zabbix Server上安装zabbix-java-gateway.conf步骤6:以下是我在/etc/zabbix/zabbix_java_gateway.conf文件中所做的仅有的3个更改...LISTEN_IP="192.168.1.112“(/不确定是否应该将ip地址保持为127.0.0.1) LISTEN_PORT=10052 START_POLLERS=5
所以问题是我应该在tomcat机器上安装java-gateway吗?我还需要配置哪些其他设置?
发布于 2016-12-22 04:25:41
我在类似的版本中遇到了完全相同的问题:
两台服务器(Tomcat服务器和Zabbix服务器)上的
和IPv4网络:
192.168.56.38
经过大量(实际上是大量)测试、googling搜索、tcpdumping、stracing等,我最终使用以下配置文件更改了catalina.sh文件:
CATALINA_OPTS="$CATALINA_OPTS \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=12345 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Djava.rmi.server.hostname=192.168.56.38"其中IP 192.168.56.38是tomcat的IP地址(不是zabbix地址),最后它工作了!!
我浏览了所有这些链接:
但是它们都指示使用远程服务器地址(在我的例子中是zabbix),但是从来没有起作用。
我怀疑这是Zabbix的问题,但我可以用Tomcat + Remote JConsole复制相同的问题,所以这是Java的问题。我真的不明白为什么,但它与上面提到的conf一起工作
发布于 2016-11-04 03:21:35

请查找错误消息的附件。1.)我必须在我试图监控的tomcat服务器上启用此步骤吗?
java \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=12345 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-jar /usr/share/doc/openjdk-6-jre-headless/demo/jfc/Notepad/Notepad.jar2.)我是否需要进行任何其他更改zabbix_agentd.conf或任何其他文件。我更改了javagatewaypol.
# Size of history index cache, in bytes.
ption: StartEscalators
# Number of pre-forked instances of escalators.
#
# Mandatory: no
# Range: 0-100
# Default:
# StartEscalators=1
### Option: JavaGateway
# IP address (or hostname) of Zabbix Java gateway.
# Only required if Java pollers are started.
#
# Mandatory: no
# Default:
JavaGateway=127.0.0.1
### Option: JavaGatewayPort
# Port that Zabbix Java gateway listens on.
#
# Mandatory: no
# Range: 1024-32767
# Default:
JavaGatewayPort=10052
### Option: StartJavaPollers
# Number of pre-forked instances of Java pollers.
#
# Mandatory: no
# Range: 0-1000
# Default:
# StartJavaPollers=0
StartJavaPollers=5
### Option: StartVMwareCollectors
# Number of pre-forked vmware collector instances.
#
# Mandatory: no
# Range: 0-250
# Default:
# StartVMwareCollectors=0
### Option: VMwareFrequency
# How often Zabbix will connect to VMware service to obtain a new data.
#
# Mandatory: no
# Range: 10-86400
# Default:
# VMwareFrequency=60
### Option: VMwarePerfFrequency
# How often Zabbix will connect to VMware service to obtain performance data.
#
# Mandatory: no
# Range: 10-86400
# Default:
# VMwarePerfFrequency=60发布于 2016-11-08 05:33:12
您的配置文件显示JMX正在端口10052上运行。检查JMXis在哪个端口上运行,并确保该端口打开了与Zabbix代理和Zabbix服务器的双向连接。如果端口未打开,请请求您的网络团队打开双向连接。
https://stackoverflow.com/questions/40385695
复制相似问题