DBHost=192.168.32.55 DBName= zabbix DBUser=zabbixuser DBPassword=zabbixpass StartTrappers=20 MaxHousekeeperDelete=5000 CacheSize=1024M StartDBSyncers=8 TrendCacheSize=128M HistoryTextCacheSize=512M AlertScriptsPath=/etc/zabbix/alertscripts LogSlowQueries=1000 LogFile=/tmp/zabbix_server.log ValueCacheSize=128M JavaGateway=127.0.0.1 JavaGatewayPort=10052 StartJavaPollers=5 zabbix 里提供了专门针对JMX 注意,zabbix-server 的java poller连接zabbix-java-gateway,由zabbix-java-gateway 去获取远程的JMX 信息。 zabbix:/root/zabbix-2.2.2/src/zabbix_java# netstat -nap | grep 5566 tcp 0 0 ::ffff:192.168.32.55:40700 ::ffff:121.40.118.102:5566 TIME_WAIT - tcp 0 0 ::ffff:192.168.32.55:33453 ::ffff:121.40.238.78:5566 ESTABLISHED 30862/java --api服务器 tomcat 机器上启用5566: JAVA_OPTS='-Xms8192m -Xmx8192m' export JAVA_HOME=/usr/java/jdk1.8.0_20 CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=5566"