One, server side: 1,JDK2, backup zabbix_server.conf./configure--prefix=/usr/local/zabbix--enable-server--enable-proxy-- Enable-agent--with-mysql--with-net-snmp--with-libcurl--enable-javamake; make Installcp 3, vim/ usr/local/zabbix/sbin/zabbix_java/settings.shlisten_ip= "0.0.0.0" listen_port=10052pid_file= "/tmp/zabbix_ Java.pid "start_pollers=5 vim/usr/local/zabbix/etc/zabbix_server.confjavagateway=127.0.0.1javagatewayport= 10052startjavapollers=5 /usr/local/zabbix/sbin/zabbix_server/usr/local/zabbix/sbin/zabbix_java/ STARTUP.SHSS-TUNLP | grep 10052hostname-i #解析IP, return to native ip two, Tomcat end wget http:/ /archive.apache.org/dist/tomcat/tomcat-7/v7.0.8/bin/extras/catalina-jmx-remote.jar -p /usr/ Local/tomcat/lib/vim/usr/local/tomcat/xx.lppz.com/tomcat.shexport catalina_opts= "-Dcom.sun.management.jmxremote -dcom.sun.management.jmxremote.authenticate=false -dcom.sun.management.jmxremote.ssl=false -djava.rmi.server.hostname=127.0.0.1 -dcom.sun.management.jmxremote.port=5500 "Restart tomcat Restart zabbix native and server Java-jar cmdline-jmxclient-0.10.3.jar -192.168.32.119:5500 java.lang:type=memory Nonheapmemoryusagejava-jar Cmdline-jmxclient-0.10.3.jar -localhost:5500 java.lang:type=Memory Nonheapmemoryusagejava-jar Cmdline-jmxclient-0.10.3.jar -192.168.19.22:5500 java.lang:type=Memory nonheapmemoryusage
Zabbix Tomcat monitoring