Zabbix | How to monitor tomcat on remote machine using jmx | Monitor tomcat using JMX in Zabbix

Опубликовано: 25 Июнь 2020
на канале: DGR Uploads
9,185
119

====================================================================
Subscribe :    / @dgruploads  
====================================================================

Link to install Zabbix on ubuntu machine :
   • Zabbix | How to install Zabbix on Ubu...  

Link to install Zabbix agent on windows server:
   • Zabbix | How to monitor windows serve...  

Link to install Zabbix agent on linux server:
   • Zabbix | How to install Zabbix agent ...  

In this session, we will look at how to monitor tomcat running on a remote server using Java gateway and JMX.

For this i am using 2 servers.
Zabbix server : Ubuntu EC2 instance
Tomcat server : Ubuntu EC2 instance

Zabbix server is running the Zabbix monitoring tool
Tomcat server is running the Tomcat application.

Make sure your zabbix server is up and running. You will need to install the java gateway on the zabbix server.

"apt install zabbix-java-gateway -y"

Make sure you have port 10050, 10051 and 10052 are open

"netstat -tulpn"

On the remote machine where tomcat is running, create a setenv.sh file in your bin directory and add the following contents.

export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=100.25.34.154 -Dcom.sun.management.jmxremote.rmi.port=10052 -Djava.net.preferIPv4Stack=true"

Djava.rmi.server.hostname=100.25.34.154 --- change the IP address with the tomcat server IP address.

Github link for the above code snippet :
https://github.com/Dgruploads/Zabbix/...

Link to install agent on Linux machine:
   • Zabbix | How to install Zabbix agent ...  

Link to download tomcat :
https://mirrors.estointernet.in/apach...
https://tomcat.apache.org/download-80...

Link to download sample war package :
https://tomcat.apache.org/tomcat-7.0-...

stop and restart the tomcat server and make sure port number 10050, 12345 and 10052 are open on the remote machine.

Go back to the zabbix dashboard and add the JMX interface by following the video.

Happy learning!!


Смотрите видео Zabbix | How to monitor tomcat on remote machine using jmx | Monitor tomcat using JMX in Zabbix онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь DGR Uploads 25 Июнь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,185 раз и оно понравилось 119 людям.