i just wish to know, what is the best way we can monitor the tomcat in check_mk?
i basically looking for monitoring , tomcat all memory (Heap / non Heap ), Garbage collection , and thread analysis, session replication ,etc .
If jolokia is running within your tomcat you can query the metrics and mbean with the mk_jolokia plugin. The Jolokia Check includes autodiscovery for the most common metrics. Other mbean can be added with custome queries.
As an alternative, the metrics can also be queried directly via nagios check_jmx plugin. But this is much more complex as each metric has to be configured manually.
Depending on the Tomcat version, the 2.x or 1.x Jolokia agent must be used. For the installation of Jolokia in a Tomcat please read the Jolokia manual (unfortunately I am not so familiar with Tomcat). I think for Tomcat you can deploy the WAR agent or load Jolokia as a JVM agent with “-javaagent:…” https://jolokia.org/tutorial.html
Then you can deploy the mk_jolokia plug-in on the host and configure it as required with the “JMX monitoring of Java JVMs using Jolokia” Rule. If everything works, Checkmk will display several JVM services in the GUI after detection, which than can be parameterized accordingly via rules.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.