Configure Munin Node

To install munin node on Ubuntu/Debian, run

apt install -y munin-node

To configure, edit file

vi /etc/munin/munin-node.conf

Find

allow ^127\.0\.0\.1$

Below this line, you need to add IP of your Munin Master. You need to convert IP to regular expression format before adding. For example, if your IP is 88.212.32.35, you need to add

allow ^88\.212\.32\.35$

If you want to allow from any IP, add

allow ^.*$

Now restart Munin node

systemctl restart munin-node

Add Node to Munin Master

You need to tell your Munin master about the new node you have installed. To do this, edit file

vi /etc/munin/munin.conf

In this file, add

[hostname-of-new-node-server]
    address IP_ADDR_OF_NODE
    use_node_name yes

Now you need to wait like 5 minutes for Munin master to fetch the data. Munin master run the command /usr/bin/munin-cron to fetch data from every configured nodes.

If you have any problem with updating data, check the log files for more info.

/var/log/munin/munin-update.log => is the log file for munin master.

/var/log/munin/munin-node.log => is the log file for munin node.

Make sure you can connect to port 4949 of node server from master. If any firewall blocking, you need to open the port for munin to fetch the data.

root@monitor:~# nc 82.211.1.93 4949
# munin node at root1272.premium-rootserver.net
# Unknown command. Try cap, list, nodes, config, fetch, version or quit
quit
root@monitor:~# 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *