Munin, server monitor

From Andreida

Server

  • install
apt-get install php5 munin
cd /etc/apache2/mods-enabled
ln -s ../mods-available/expires.load
cd /etc/apache2/sites-enabled
ln -s /etc/munin/apache.conf
/etc/init.d/apache2 restart
  • change /etc/munin/munin.conf
    • add the clients, if the name is not the real name, change it in the clients munin-node.conf (all lowercase !)
  • force the update
su - munin --shell=/bin/bash -c /usr/share/munin/munin-update

check the data at the server: http://<ip>/munin/index.html

Client

SOMETHING IS WRONG HERE, DON'T THINK THE FOLLOWING IS CORRECT! It has something to do with the client checks. Hard discs etc. are checked on the server. When I use Munin again, I will correct this. Perhaps.


  • install
apt-get install munin-node 
  • if you want some more plugins
apt-get install munin-plugins-extra
  • change in /etc/munin/munin-node.conf
    • hostname, so it matches with the one the server knows (all lowercase !)
    • allow the server
  • restart the node
/etc/init.d/munin-node restart

Many scripts are found in

/usr/share/munin/plugins/

but only active if you create a link to them in

/etc/munin/plugins/

to use the sensors_ plugin:

cd /etc/munin/plugins
ln -s /usr/share/munin/plugins/sensors_ sensors_fan
apt-get install i2c-tools lm-sensors
munin-run sensors_fan suggest

now create links with the told endings

ln -s /usr/share/munin/plugins/sensors_ sensors_vol
...

you can test them:

munin-run sensors_temp