Zabbix-java-gateway Monitoring Tomcat

Source: Internet
Author: User
Tags object object apache tomcat

Zabbix's JMX monitoring architecture
Zaibbix Server-->java gateway-->jmx Counter
Install JMX: can be installed on any server, this time installed on the server side; # yum -y install zabbix-java-gateway# systemctl  status zabbix-java-gateway.service Modifying the Java-gateway configuration file    # vim /etc/zabbix/ zabbix_java_gateway.conf    #  Listening address     listen_ip= ""      #  Listening Port     listen_port=10052    # pid_ File files     pid_file= "/var/run/zabbix/"     #  Number of worker threads opened     START_POLLERS=50    #  time-out      Timeout=3 Start zabbix-java-gateway:    # systemctl start  zabbix-java-gateway.service    # ss -tnl | grep 10052         LISTEN     0       50           *:10052                     *:*    Modify zabbix_server configuration file and restart     # vim / etc/zabbix/zabbix_server.conf          #修改下面几个参数:   IP address of the server where the       # javagateway is located          javagateway=        # javagateway Service Port          JavaGatewayPort=10052         #  number of processes from Javagateway data acquisition         startjavapollers=5 configuration file modification, Restart zabbix-server:    # systemctl restart  Zabbix-server.service Note: The start_pollers parameter of the Java-gateway configuration file  >= zabbix_server The Startjavapollers parameter of the configuration file
Add parameters to JMX in Tomact: Configure at the beginning of the file. # vim $tomcat/bin/ catalina_opts= "$CATALINA ent.jmxremote.port=12345 # JMX Port, default gement.jmxremote.ssl=false-djava.rmi.server.hostname= "# Native IP
GUI side:
Import template to Zabbix, and associate to host, add monitor new host, configure JMX interface, default port number 12345;

Import JMX template selection Configuration: Host-Templates-select-Templates-: Template app Apache Tomcat jmx template app Generic java jmx

To see if JMX is in effect, restart the Tomcat process and Zabbix-java-gateway service Configuration------and see if the JMX that corresponds to the server is turned green;

View graphics Monitoring--Graphs Select the corresponding host,graph select Threads,[object Object]

Zabbix-java-gateway Monitoring Tomcat

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.