Monitoring a Linux box with Munin

What this tutorial is about

This little tutorial shows you how to keen an eye on your Linux box. Monitoring your server is something which is very important, especially for analyzing purposes.

Introduction

We will use Munin. Munin is a very interesting tool, it helps you tracking down the resource usage and locate possible problems.

More information about Munin here: http://munin.projects.linpro.no/

Normally you install Munin as a client on the box which gets observed and use a dedicated virtual machine as the Munin server. But I assume you don’t want to access two different servers and just want to test Munin, so we do everything on a single machine.

Installing Munin

I assume that you already installed a LAMPP system on a Debian box. Now let’s get started:

vm66:~# apt-get install munin munin-node

Just agree that you want to install all those packages and voilà, Munin just got installed.

The directory /var/www/munin should be created and filled with content a few minutes after you installed Munin.

Now open your browser and visit our monitoring pages:

http://000.000.000.000/munin/

There is more…

Well, this is it! Munin is running and collecting data + generating graphics. But there is more about it, Munin is a very powerful tool when you configure it correctly and use some plugins.

You can find the Munin config files in /etc/munin/ and obtain some enhancements here:

http://muninexchange.projects.linpro.no/?latest

https://workbench.amd.co.at/trac/munin-plugins