Howto install a local munin node

wlanboy

Content Contributer
Munin is a little peace of perl magic. If you do not know it -> look at this demo.

Installation is quite simple:


apt-get install munin munin-node libcache-cache-perl

Now you have to config munin:


sudo nano /etc/munin/munin.conf

Only part you have to alter:


# a simple host tree
[name of your wish]
address 127.0.0.1
use_node_name yes


Next part is the munin-node config:


sudo nano /etc/munin/munin-node.conf

Only part you have to alter:


# Which address to bind to;
#host *
host 127.0.0.1


Sometimes the pkg script does something wrong (most of the times wrong ownership of folders)

Run this script to check all configuration properties:


munin-check

If everything is fine you can restart munin:


service munin-node restart

After that you only have to forward some path to the www-dir of munin:


For lighttpd:

sudo nano /etc/lighttpd/lighttpd.conf
add:

$HTTP["remoteip"] =~ "127.0.0.1" {
alias.url += ("/munin/" => "/var/cache/munin/www/")
}

Open your browser and load following url: http://127.0.0.1/munin/

That's it - have fun with a lot of graphs.

PS:

If you want to activate a new plugin you can go to following path:


ls -al /usr/share/munin/plugins

and link one plugin to the activated plugins - e.g.:


ln -s /usr/share/munin/plugins/fail2ban /etc/munin/plugins/
ln -s /usr/share/munin/plugins/sendmail_mailqueue /etc/munin/plugins/
ln -s /usr/share/munin/plugins/sendmail_mailstats /etc/munin/plugins/
ln -s /usr/share/munin/plugins/sendmail_mailtraffic /etc/munin/plugins/

If a plugin is missing (e.g. lighttpd, mod_jdk, memcached, mongodb, eveb minecraft) you can search the official github:

https://github.com/munin-monitoring/contrib/tree/master/plugins
 

MannDude

Just a dude
vpsBoard Founder
Moderator
Another great tutorial. I may throw this up on the vpsBoard server later on :D
 

happel

New Member
That would be the proper course of action I guess. Maybe in a few months, when I reinstall/upgrade my monitoring vps to Debian Wheezy.
 
Top