This article explains how to install and configure the Munun Node on a Redhat or CentOS server. The Munin Server was documented previously.
First you need to install the packages:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum install -y munin-node chkconfig munin-node on
Make sure to allow TCP port 4949 through your firewall to the Munin Node. IPTables looks like this in “/etc/sysconfig/iptables”:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 4949 -j ACCEPT
Restart IPTables if need be.
Next you need to edit the “/etc/munin/munin-node.conf” file. Here is an example of what to add. In this example, the IP address of the Munin Server is “192.168.0.3”. It must be in regex format. This allows the Munin Server to query the Munin Node:
allow ^192.168.0.3$
So my complete “/etc/munin-node.conf” file looks like this:
log_level 4 log_file /var/log/munin-node/munin-node.log pid_file /var/run/munin/munin-node.pid background 1 setsid 1 user root group root ignore_file DEADJOE$ ignore_file .bak$ ignore_file %$ ignore_file .dpkg-(tmp|new|old|dist)$ ignore_file .rpm(save|new)$ ignore_file .pod$ allow ^192.168.0.3$ allow ^127.0.0.1$ allow ^::1$ host * port 4949
Next you need to restart the Munin Node service:
service munin-node restart
On the Munin Server.
Finally you need to make a small change to the Munun Server. You need to tell the Munin Server to go and query the Munin Node. Edit the file “/etc/munin/munin.conf” on the Munin Server. Add the following section – customised for your needs:
[my-munin-node-01] address my.munin-node01.com use_node_name yes
Where “my.munin-node01.com” is your Munin Node’s FQDN. Or you can put the IP address there instead.
At this point your new Munin Node should be reporting to the Munin Server. If not, check your firewall and tail the log on the server:
tail -f /var/log/munin/*