Munin: Monitor your servers in a very simple way
Introduction
Munin is a relatively unknown monitoring tool, but unlike Cacti, it is very very simple to use and install. It is also full of surprising features.
Here's an overview:
- Simplicity
- Web interface for consultation
- Client/server architecture
- Support for RRDTool for graph generation
- Many plugins available
- Alert sending to Nagios
- SNMP protocol support
- Automatic detection of services on the machine
For a demo: http://munin.ping.uio.no/
Installation
To install Munin, there are 2 components:
- Munin: The server
- Munin-node: The client
The server should be installed on the main machine as it will contain a web graphical interface.
Server
To install the server, it's quite simple:
Munin is now installed.
Client
To install the client, run this command:
Next, we need to configure it.
Configuration
You found the installation simple? Well, the configuration is the same!
Server
Edit the "/etc/munin/munin.conf" file and adapt it to your configuration:
Accelerate data collection
To speed up data collection with munin-update, add to /etc/munin/munin.conf on the master:
This way, munin will create a fork for each machine to query, rather than querying them one after another.
Client
The client is now installed, edit the "/etc/munin/munin-node.conf" file:
Replace this address if the client is not installed on the server. If it's just the client that is installed on this machine, then replace the address with that of the server.
Then restart the client:
Add-ons
- All available services on the machine are detected by the munin-node-configure command:
- The Debian package activates plugins for detected services by creating links in the /etc/munin/plugins directory:
- You can disable a plugin by removing its symlink and enable it by creating a symlink:
ZFS
This is a Solaris-only plugin (requires the Kstat module) that monitors I/O on ZFS pools: