Tuesday 28 May 2013

How to install tomcat Plugin in munin

Create softlink with plugin

[root@localhost ~]#ln -s /usr/share/munin/plugins/tomcat_access /etc/munin/plugins/tomcat_access
[root@localhost ~]#ln -s /usr/share/munin/plugins/tomcat_jvm /etc/munin/plugins/tomcat_jvm
[root@localhost ~]#ln -s /usr/share/munin/plugins/tomcat_threads /etc/munin/plugins/tomcat_threads
[root@localhost ~]#ln -s /usr/share/munin/plugins/tomcat_volume /etc/munin/plugins/tomcat_volume

Edit tomcat-users.xml and add user for munin graph

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

Config tomcat plugins in munin

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

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

check locally
[root@localhost ~]#/etc/munin/plugins/tomcat_jvm

you need install simple xml support,

[root@localhost]# /etc/munin/plugins/tomcat_jvm
Can't locate object method "new" via package "XML::Simple" at /etc/munin/plugins/tomcat_jvm line 119.
fisrt time get this msg

[root@localhost]# yum install perl-XML-Simple
Restart munin-node

[root@localhost]#/etc/init.d/munin-node restart

then check the graph.


No comments:

Post a Comment

Install XRDP in Centos 7

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update yum groupinstall "GNOME Desktop" ...