I am using Zabbix for monitoring metrics, I have a Java Spring application and I want to see all metrics such as Tomcat's metrics. When I use Zabbix for monitoring, some items of Zabbix are not working. Especially Catalina support. I tried to see Catalina metrics on Jconsole, but I did receive any data. I don't know where I should add any libraries or components in order to get metrics.
I configured Spring Jmx, Rmi beans. But anyway I have not found any answers. It did not help me to solve the problem. I used this recource. Unfortunately, I could not solve my problem.
I tried to add this.
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina-jmx-remote</artifactId>
<version>8.5.9</version>
<type>jar</type>
</dependency>
Before running the server I added
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port= -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=
I expect that monitoring tomcat should be worked without any additional codes, But It is not working. Basically, I need Tomcat's received and sent bytes. How should I do this?