I need to monitor remote tomcat server. I have successfully setup Java-gateway on zabbix server and configured JMX port on tomcat side. I have tested to connection from zabbix server to tomcat with jmxterm and able to fetch values.
I have also added tomcat server as host with JMX interface and applied 'Appache Tomcat by JMX template. All items provided by the template work properly, but when I have tried to add HeapMemory usage as new item, it fails. If I try to test it I have got
my settings is:
key: jmx[“java.lang:type=Memory”,”HeapMemoryUsage.used”]
JMX Endpoint: service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi
from jmxterm it fetch value:
Any idea what may be wrong ?
I have also added tomcat server as host with JMX interface and applied 'Appache Tomcat by JMX template. All items provided by the template work properly, but when I have tried to add HeapMemory usage as new item, it fails. If I try to test it I have got
Code:
Object or attribute not found: “java.lang:type=Memory”
key: jmx[“java.lang:type=Memory”,”HeapMemoryUsage.used”]
JMX Endpoint: service:jmx:rmi:///jndi/rmi://{HOST.CONN}:{HOST.PORT}/jmxrmi
from jmxterm it fetch value:
Code:
$>get -b java.lang:type=Memory HeapMemoryUsage.used #mbean = java.lang:type=Memory: HeapMemoryUsage.used = 414034592;
Comment