How to install and configure Munin
The monitoring of essential servers and services is an important part of system administration. This guide will show you how to set up Munin for performance monitoring.
In this example, we will use two servers with hostnames:
Server01 will be set up with the
munin package to gather information from the network. Using the
server02 will be configured to send information to
Before installing Munin on
server01, Apache2 will need to be installed. The default configuration is fine for running a
server01 install the
munin package. In a terminal enter the following command:
sudo apt install munin
server02, install the
sudo apt install munin-node
server01 edit the
/etc/munin/munin.conf file, adding the IP address for
## First our "normal" host.
172.18.100.101with the actual hostname and IP address for your server.
/etc/munin/munin-node.conf to allow access by
^172\.18\.100\.100$with the IP address for your
server02 for the changes to take effect:
sudo systemctl restart munin-node.service
In a browser, go to
http://server01/munin, and you should see links to nice graphs displaying information from the standard munin-plugins for disk, network, processes, and system. However, it should be noted that since this is a new installation, it may take some time for the graphs to display anything useful.
munin-plugins-extra package contains performance checks and additional services such as DNS, DHCP, and Samba, etc. To install the package, from a terminal enter:
sudo apt install munin-plugins-extra
Be sure to install the package on both the server and node machines.
See the Munin website for more details.
Specifically the Munin Documentation page includes information on additional plugins, writing plugins, etc.