Categories
Performance Testing

Installing Munin

Creating the Symbolic links for downloaded plugins:
Create the cross link reference from usr/share/munin/plugins to /etc/munin/plugins
ln -s /usr/share/munin/plugins/Tomcat1_jvm /etc/munin/plugins/
ln -s /usr/share/munin/plugins/Tomcat2_jvm /etc/munin/plugins/

Creating user and password for munin in tomcat-users.xml:
Go to /opt/tomcat1/conf/tomcat_users.xml and add the following lines into <tomcat-users> </tomcat-users>

<tomcat-users>
<role rolename=”manager”/>
<role rolename=”tomcat”/>
<role rolename=”admin”/>
<user username=”munin” password=”admin” roles=”admin,manager”
</tomcat-users>

Then copy the tomcat-users.xml from
cp /opt/tomcat1/conf/tomcat-users.xml /opt/tomcat2/htdocs/conf/ (same for Tomcat2)

Registering the user in /etc/munin/plugin-conf.d/munin-node:
Go to /etc/munin/plugin-conf.d/munin-node
Add the following lines ,

[tomcat*]
env.user tomcat
env.password admin

Specifying the ports for the plugins:
Go to /usr/share/munin/plugins/ and edit Tomcat1_JVM
cd usr/share/munin/plugins
vi Tomcat1_JVM

Edit the port number for Tomcat1_JVM,
my $PORT = exists $ENV{‘ports’} ? $ENV{‘ports’} : 6080;

Go to /usr/share/munin/plugins/ and edit Tomcat2_JVM
cd usr/share/munin/plugins
vi Tomcat2JVM

Edit the port number for Tomcat2_JVM,
my $PORT = exists $ENV{‘ports’} ? $ENV{‘ports’} : 7080;

Leave a Reply

Your email address will not be published. Required fields are marked *