Book Image

Zabbix Cookbook

By : Patrik Uytterhoeven, patrik uytterhoeven
Book Image

Zabbix Cookbook

By: Patrik Uytterhoeven, patrik uytterhoeven

Overview of this book

Table of Contents (18 chapters)
Zabbix Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

JMX checks


Since Zabbix 2.0, there is native support for monitoring Java applications in Zabbix. For this, Zabbix makes use of a so-called Java gateway. Once the gateway is in place, Zabbix can monitor all JMX counters from our Java application.

Getting ready

For this setup to work, you need as usual, your Zabbix server setup and access with full administration rights. We also need a host configured in Zabbix that we can use to install our JMX and Java application. If you have compiled your server from source, then make sure you have compiled it with the --enable-java option.

How to do it…

  1. First thing to do on our Zabbix server is to install the Java gateway. This can be done with the following command:

    yum install zabbix-java-gateway
    
  2. Make the Java gateway start up automatic next reboot:

    chkconfig zabbix-java-gateway on
    

    For RHEL 7:

    systemctl enable zabbix-java-gateway
    
  3. Start the Java gateway:

    service start zabbix-java-gateway
    

    For RHEL 7:

    systemctl start zabbix-java-gateway 
    
  4. In the zabbix_server...