[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 8080env.user tomcatenv.password tomcat
check locally
[root@localhost
~]#/etc/munin/plugins/tomcat_jvm
you need install simple xml support,
Restart munin-node[root@localhost]# /etc/munin/plugins/tomcat_jvmCan'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
[root@localhost]#/etc/init.d/munin-node
restartthen check the graph.
No comments:
Post a Comment