Zabbix monitoring Tomcat

Source: Internet
Author: User

Zabbix monitoring Tomcat

Server
Rpm-IVH jdk-8u20-linux-x64.rpm
VI/etc/profile
Java_home =/usr/Java/jdk1.8.0 _ 20
Path = $ path: $ java_home
Classpath =.: $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Export java_home
Export path
Export classpath
Source/etc/profile
Java-version

CD/root/zabbix-2.0.6
./Configure -- enable-Java-Prefix =/usr/local/zabbix/zabbix_java
Make & make install

VI/usr/local/zabbix/zabbix_java/sbin/zabbix_java/settings. Sh
Listen_ip = "0.0.0.0"
Listen_port= 10052
Start_pollers = 5

VI/usr/local/zabbix/etc/zabbix_server.conf
Javagateway = 127.0.0.1
Javagatewayport = 10052
Startjavapolers = 5

Start zabbix_java
CD/usr/local/zabbix/zabbix_java/sbin/zabbix_java
./Startup. Sh

Tomcat server
CD/usr/Apache-Tomcat-7.0.53/bin
Modify Tomcat Catalina. Sh
Add the following content:
Catalina_opts = "-DCOM. sun. management. jmxremote-DCOM. sun. management. jmxremote. authenticate = false-DCOM. sun. management. jmxremote. port = 123-DCOM. sun. management. jmxremote. SSH = false-djava. RMI. server. hostname = 192.168.18.19 "----- remarks (192.168.18.19 is the Client IP address)

Modify the hostname of the Tomcat server
192.168.18.19 localhost. localdomain localhost
Restart Tomcat
Pkill Java
CD/usr/Apache-Tomcat-7.0.53/bin
./Startup. Sh
Test with tools on zabbix Server
Download cmdline-jmxclient-0.10.3.jar tools
-Java-jar cmdline-jmxclient-0.10.3.jar-192.168.18.19: 123

Test on the server
Java-jar cmdline-jmxclient-0.10.3.jar-192.168.18.19: 123 java. LANG: TYPE = memory nonheapmemoryusage

 

This step seems to be a problem, and the Web interface displays a problem!

Zabbix monitoring Tomcat

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: info-contact@alibabacloud.com 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.