Let's create a separate host for JMX monitoring. Navigate to Configuration | Hosts, and click on Create host. Enter Zabbix Java gateway
in the Host name field, clear everything in the In groups listbox, and enter Java
in the New group field. We will need JMX items on this host: remove the default agent interface and click on Add next to JMX interfaces. In our case, the gateway is running on the local host, so we can leave the IP address at the default, 127.0.0.1
. But what about the port? We had the Java gateway listen on 10052
, but then there was also that 12345
port in the startup.sh
script. If a confusion arises, we should think about which functionality is available on each of these ports. On port 10052
, we had the gateway itself, which was the port Zabbix server connects to. We already saw this port set in the server configuration file. Normally, the gateway would then connect to some other Java application to query JMX information.
The 12345
port was in the lines...