Configuring the Tomcat Plugin of Munin

munintomcat6

It would be great if anyone can share a working configuration for the tomcat_ plugin of munin. I need to monitor several tomcat instances on one machine.

So far I can't figure out:

  • which are the available metrics for the tomcat_ plugin? (documentation is quite poor – at least what I've managed to find)
  • how to configure it correctly?

Best Answer

share my experiences,hope it helps

step1: enable tomcat plugins

sudo ln -s /usr/share/munin/plugins/tomcat_access /etc/munin/plugins/tomcat_access
sudo ln -s /usr/share/munin/plugins/tomcat_jvm /etc/munin/plugins/tomcat_jvm
sudo ln -s /usr/share/munin/plugins/tomcat_threads /etc/munin/plugins/tomcat_threads
sudo ln -s /usr/share/munin/plugins/tomcat_volume /etc/munin/plugins/tomcat_volume

step2: config tomcat manager status page where the plugin read info from

edit tomcat-users.xml and add

<user username="munin" password="munin" roles="manager"/>
<role rolename="manager"/>

access http://munin:munin@localhost:8080/manager/status?XML=true to see if it works. check official document for details:Manager App HOW-TO

step3: config tomcat plugins

edit /etc/munin/plugin-conf.d/munin-node and add

[tomcat_*]
env.ports 8080
env.user munin
env.password munin

step4: local check

run and check messages.

/etc/munin/plugins/tomcat_jvm

normally you need install simple xml support,

sudo apt-get install libxml-simple-perl
#OR
sudo yum install perl-XML-Simple

step5: update munin node

sudo /etc/init.d/munin-node restart

check you graphics, it should works.

Related Topic