Zabbix monitors Tomcat and microservice applications (with monitoring script)

1. Zabbix monitoring Tomcat application actual combat

To monitor tomcat in zabbix, you need to enable java poller in zabbix_server, JavaGateway in zabbx_java with port 10052, and port 12345 in Tomcat JMX to provide performance data.

The data acquisition process is: java poller-->JavaGateway:10052<--Tomcat:12345.

1. Configure Tomcat JMX

Configure jmx, edit catalina.sh on the tomcat server to be monitored, and add the following configuration:

CATALINA_OPTS="-server -Xms256m -Xmx512m -XX:PermSize=64M -XX:MaxPermSize=128m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=172.16.213.232 -Dcom.sun.management.jmxremote.port=12345"

It should be noted here that the -Djava.rmi.server.hostname option must be added, and

Guess you like

Origin blog.csdn.net/qq_35029061/article/details/132257447