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.


Reset Grace Period of Windows Server 2012 RDS

Error: the remote session was disconnected because there are no remote desktop license servers available to provide license in aws Solu...