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…
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
Make the Java gateway start up automatic next reboot:
chkconfig zabbix-java-gateway on
For RHEL 7:
systemctl enable zabbix-java-gateway
Start the Java gateway:
service start zabbix-java-gateway
For RHEL 7:
systemctl start zabbix-java-gateway
In the
zabbix_server...