Загрузка страницы

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

====================================================================
Subscribe : https://www.youtube.com/channel/UCq3a5LV2NtHt526ZDQYwPig/?sub_confirmation=1
====================================================================

Link to install Zabbix on ubuntu machine :
https://youtu.be/eao6qjVF17A

Link to install Zabbix agent on windows server:
https://youtu.be/QoXxeFXPLlA

Link to install Zabbix agent on linux server:
https://youtu.be/pSUGLQ6fZ5U

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/blob/master/Catalina_opts_for_jmx_zabbix

Link to install agent on Linux machine:
https://youtu.be/pSUGLQ6fZ5U

Link to download tomcat :
https://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.56/bin/apache-tomcat-8.5.56.tar.gz
https://tomcat.apache.org/download-80.cgi

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

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
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
25 июня 2020 г. 19:36:07
00:18:33
Другие видео канала
Mastering AWS EKS: Top 10 AWS EKS Interview Questions Unveiled with Answers!"Mastering AWS EKS: Top 10 AWS EKS Interview Questions Unveiled with Answers!"Part 3 | AWS Interview Questions | Master AWS Scenario Challenges with 10 Questions and answers!Part 3 | AWS Interview Questions | Master AWS Scenario Challenges with 10 Questions and answers!How to remove enhanced security feature in AWS windows EC2 instance.How to remove enhanced security feature in AWS windows EC2 instance.Docker| Multi stage build | Optimize Your Java Spring Boot Application with Multi-Stage Docker BuildDocker| Multi stage build | Optimize Your Java Spring Boot Application with Multi-Stage Docker BuildTerraform | Episode 78 | Creating account or signing up to Terraform Cloud | Terraform Cloud accountTerraform | Episode 78 | Creating account or signing up to Terraform Cloud | Terraform Cloud accountTerraform | Episode 70 | Understanding Terraform module arguments | Terraform module argumentsTerraform | Episode 70 | Understanding Terraform module arguments | Terraform module argumentsAWS | Episode 12 | Introduction to AWS Global Infrastructure | Understanding AWS Global InfraAWS | Episode 12 | Introduction to AWS Global Infrastructure | Understanding AWS Global InfraTerraform | Episode 71 | Calling Terraform modules from local machine | Terraform module local pathsTerraform | Episode 71 | Calling Terraform modules from local machine | Terraform module local pathsAWS | Episode 54 | Hands-On AWS Auto Scaling | Working with Auto Scaling Group Fixed Capacity |AWS | Episode 54 | Hands-On AWS Auto Scaling | Working with Auto Scaling Group Fixed Capacity |Terraform | Episode 51 | Introduction to Terraform null-resources | Understanding null-resources.Terraform | Episode 51 | Introduction to Terraform null-resources | Understanding null-resources.Top 15 Advanced AWS Interview Questions & Answers | Ace Your Cloud Interview | AWS Interview PrepTop 15 Advanced AWS Interview Questions & Answers | Ace Your Cloud Interview | AWS Interview PrepDecoding AWS Route 53: Top 10 Interview Questions Unveiled!"Decoding AWS Route 53: Top 10 Interview Questions Unveiled!"AWS | Episode 58 | Mastering AWS CloudWatch Alarms: A Comprehensive Introduction and Hands-OnAWS | Episode 58 | Mastering AWS CloudWatch Alarms: A Comprehensive Introduction and Hands-OnAWS | Episode 39 | EBS volume types | Different volume types in Elastic Block StoreAWS | Episode 39 | EBS volume types | Different volume types in Elastic Block StoreConnecting to EC2 instances without using Key pairs.Connecting to EC2 instances without using Key pairs.Top 15 Kubernetes Error Interview Questions & Answers | Advanced Kubernetes Troubleshooting GuideTop 15 Kubernetes Error Interview Questions & Answers | Advanced Kubernetes Troubleshooting GuideAdvanced Shell Scripting Interview Questions for DevOps | Shell Scripting Interview Prep | DevOpsAdvanced Shell Scripting Interview Questions for DevOps | Shell Scripting Interview Prep | DevOpsTerraform | Episode 41 | Terraform remote-exec provisioner | Understanding remote-exec provisioner.Terraform | Episode 41 | Terraform remote-exec provisioner | Understanding remote-exec provisioner.Terraform | Episode 76 | Terraform import example | Trying the Terraform import command.Terraform | Episode 76 | Terraform import example | Trying the Terraform import command.AWS | Episode 50 | Demystifying Load Balancer in AWS: Introduction to Efficient Traffic DistributionAWS | Episode 50 | Demystifying Load Balancer in AWS: Introduction to Efficient Traffic DistributionTerraform | Episode 43 | Terraform depends_on meta-argument | Understanding depends_on meta-argumentTerraform | Episode 43 | Terraform depends_on meta-argument | Understanding depends_on meta-argument
Яндекс.Метрика