• install munin

apt-get install munin

 

accept all dependencies

  • configure munin

 

this default configuration which is OK for me but if you want you can change it

configuration file is in /etc/munin/munin.conf

dbdir /var/lib/munin – database folder

htmldir /var/cache/munin/www – html folder

logdir /var/log/munin  – log folder

rundir  /var/run/munin – place where munin run

  • configure apache.conf file to allow access to stats via Internet(by default only 127.0.0.1 is

 

Order allow,deny

Allow from localhost 127.0.0.0/8 ::1

Allow from x.x.x.x

reload apache, your stats are available at http://server/munin

  • configure nodes

by default munin use localhost as a node but if you want to monitor other hosts you need to do following steps

on remote host(munin-node) do

 apt-get install munin-node

edit /etc/munin/munin-node.conf file

change allow ^127\.0\.0\.1$

to allow x.x.x.x where x.x.x.x is IP of your munin server

change firewall to allow tcp traffic from munin-server on port 49494

reload munin-node /etc/init.d/munin-node restart

on munin-server do

 in /etc/munin/munin.conf add

[host.domain]
address y.y.y.y
use_node_name yes
where y.y.y.y is monitored host

 

after 5 minutes(cron run munin every 5 minutes) you should see graph from your remote system

 dzbanek 2012-12-26