Access the Zabbix server dashboard and add the Linux computer running the Tomcat service as a Host.
Open your browser and enter the IP address of your web server plus /zabbix.
In our example, the following URL was entered in the Browser:
On the login screen, use the default username and default password.
• Default Username: Admin
• Default Password: zabbix
After a successful login, you will be sent to the Zabbix Dashboard.
On the dashboard screen, access the Configuration menu and select the Host option.
On the top right of the screen, click on the Create host button.
Enter the following information:
• Host Name - Enter a Hostname to identify the Tomcat server.
• Visible Hostname - Repeat the hostname.
• Group - Select the name of a group to identify similar devices.
• Interfaces - Delete the default interface and add a JMX interface.
• JMX Interfaces - Enter the IP address of the Tomcat server and the TCP port 12345.
Here is the new image with our configuration.
Next, we need to associate the host to a monitoring template.
Access the Templates tab on the top of the screen.
Click on the Select button and locate the template named: TEMPLATE APP APACHE TOMCAT JMX
Click on the Add button.
After a few minutes, you will be able to see the initial result on the Zabbix Dashboard.
In order to test your configuration, access the Monitoring menu, and click on the option named: Latest data.
Find your server and click on the Apply button.
In order to test your configuration, access the Monitoring menu, and click on the Hosts option.
Find your server and click on the Graphs option.
Zabbix will display the graphics available to monitor the Tomcat service.
Congratulations! You configured the Zabbix server to monitor a Tomcat server.