Installing Munin in Cpanel with plugins

Munin

Munin is free open source server monitoring tool to monitor different aspect of the server. You can get more information about munin from http://munin-monitoring.org/.

Munin can be easily installed in Cpanel

Go to Home > cpanel > Mange Plugins  in WHM, and then look for munin plugin and just tick on ‘Install and keep updated’

once it is install you will see munin on plugins section of WHM.

Installing plugins to Munin on Cpanel:

Munin itself comes with lots of plugins but all of these are not enable. You can find the list of plugins those are enabled in the Munin from following location:

/etc/munin/plugins  ls -l

In Cpanel servers all the plugins are symbolic links from

/usr/local/cpanel/3rdparty/share/munin/plugins/

So go to  /usr/local/cpanel/3rdparty/share/munin/plugins/ and look for the file of the plugins you are looking for, if plugins are not there it might be in munin official site https://github.com/munin-monitoring/contrib/ OR  you can find more information on http://munin-monitoring.org/wiki/Documentation

Installing plugins that exist in CPanel

If you find your plugins at /usr/local/cpanel/3rdparty/share/munin/plugins you have to create symbolic link of that file to /etc/munin/plugins folder.

for example if the plugin file name is myplugin then:

ln-s /usr/local/cpanel/3rdparty/munin/plugins/apache/myplugin   /etc/munin/plugins/myplugin

once the symbolic link is created edit the config file cpanel.conf inside /etc/munin/plugin-conf.d

so :

Vi /etc/munin/plugin-conf.d/cpanel.conf

add new lines in the file as:

[myplugin]

user root
group wheel

#You can add your other user and group settings and also passed extra parameter.

Once its saved, restart the munin node by

service munin-node restart

it will take 10-20 min to graph to be appear on the WHM munin plugin.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s