Munin is one of those tools that’s been around forever and still earns its place. No database to babysit, no agents phoning home to a SaaS, just a master that polls nodes every five minutes and draws RRD graphs you can open in any browser. If you want “what did this box look like last Tuesday at 3am” without standing up a full monitoring stack, it’s hard to beat.
In this guide I install the Munin master on Ubuntu 26.04, add a RHEL 9 server as a node, open up the web pages safely, and fix the two problems I actually hit along the way. Everything below is real output from my lab: the master is linux1 (192.168.100.71) and the node is app1 (192.168.100.65).
How Munin’s master and node fit together
Two pieces, and the direction of traffic matters:
- munin-node runs on every server you want to watch. It listens on TCP 4949 and answers questions by running small plugins (cpu, load, memory, df and so on).
- munin (the master) connects out to each node every five minutes from cron, stores the values in RRD files under
/var/lib/munin, and writes static HTML and PNG graphs to/var/cache/munin/www.
So the node needs to accept connections from the master, not the other way round. Keep that in your head and the firewall and allow rules make sense straight away. The master usually runs a node too, so it can graph itself.
Install the Munin master on Ubuntu
Ubuntu packages both pieces. Apache was already on this box from our LAMP stack guide; if it isn’t on yours, add apache2 to the install line.
sudo apt install -y munin munin-node
Setting up munin-common (2.0.76-5ubuntu1)…
Setting up munin-plugins-core (2.0.76-5ubuntu1)…
Setting up munin-plugins-extra (2.0.76-5ubuntu1)…
Setting up munin (2.0.76-5ubuntu1)…
Setting up munin-node (2.0.76-5ubuntu1)…
Created symlink '/etc/systemd/system/multi-user.target.wants/munin-node.service' → '/usr/lib/systemd/system/munin-node.service'.
munin-node --version
Version:
This is munin-node v2.0.76
Notice there’s no munin service to enable on the master. A lot of guides tell you to systemctl enable munin, but on Ubuntu the master is driven by cron:
grep munin-cron /etc/cron.d/munin
*/5 * * * * munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi
The package also auto-enabled 28 plugins for the local node, based on what it found on the system (Apache, the ens33 interface, disks and so on).
Install munin-node on RHEL 9
On RHEL, Rocky, Alma and Oracle Linux, Munin comes from EPEL. Enable EPEL first if you haven’t, then:
sudo dnf install -y munin-node
Installed:
munin-common-2.0.76-8.el9.noarch
munin-node-2.0.76-8.el9.noarch
perl-Net-Server-2.009-14.el9.noarch
Complete!
Unlike Ubuntu, RHEL doesn’t start it for you. Before you do, look at what plugins it picked. munin-node-configure --suggest shows each plugin and whether it thinks it should run here:
sudo munin-node-configure --suggest
Plugin | Used | Suggestions
------ | ---- | -----------
cpu | yes | yes
df | yes | yes
hddtemp_smartctl | yes | yes
if_ | yes | yes (br-227604ed2246 docker0 ens160 veth0da399d veth6474971 vethd36cbb6)
load | yes | yes
memory | yes | yes
...
That if_ line is worth a second look. This server runs Docker, and every container gets a veth interface with a random name that changes whenever the container is recreated. Graph those and you end up with a pile of dead graphs. I removed them and kept the real NIC and the bridges:
sudo rm /etc/munin/plugins/if_veth*
removed '/etc/munin/plugins/if_veth0da399d'
removed '/etc/munin/plugins/if_veth6474971'
removed '/etc/munin/plugins/if_vethd36cbb6'
Plugins are just symlinks in /etc/munin/plugins, so enabling one is ln -s /usr/share/munin/plugins/NAME /etc/munin/plugins/ and disabling it is rm. Restart munin-node after either.
Configure the node to accept the master
Out of the box, munin-node only talks to localhost. Open /etc/munin/munin-node.conf and add the master’s IP as an allow line. It’s a regular expression, so escape the dots:
host_name app1
allow ^127\.0\.0\.1$
allow ^::1$
allow ^192\.168\.100\.71$
port 4949
I also set host_name. This VM’s hostname -f returned plain localhost, and with use_node_name yes on the master that would have caused a mismatch. Setting it here removes the guesswork. (If you need a whole subnet, there’s also a cidr_allow 192.168.100.0/24 option.)
Start the service and open the port in firewalld:
sudo systemctl enable --now munin-node
Created symlink /etc/systemd/system/multi-user.target.wants/munin-node.service → /usr/lib/systemd/system/munin-node.service.
sudo firewall-cmd --permanent --add-port=4949/tcp && sudo firewall-cmd --reload
success
success
ss -ltnp | grep 4949
LISTEN 0 4096 *:4949 *:* users:(("munin-node",pid=140875,fd=5))
Test the node from the master before touching munin.conf
This step saves a lot of head-scratching. Munin’s protocol is plain text, so you can talk to a node with nc from the master:
asif@linux1:~$ printf "list\nquit\n" | nc 192.168.100.65 4949
# munin node at app1
cpu df df_inode entropy forks fw_conntrack fw_forwarded_local fw_packets hddtemp_smartctl if_br-227604ed2246 if_docker0 if_ens160 interrupts irqstats load memory open_files open_inodes proc_pri processes swap threads uptime users vmstat
asif@linux1:~$ printf "fetch load\nquit\n" | nc 192.168.100.65 4949
# munin node at app1
load.value 2.25
.
The banner reports app1, the plugin list is there, and a fetch returns a value. If the master can do this, munin-update will work too. For comparison, here’s what the node logs when a machine that isn’t in the allow list connects (my Windows PC, .22):
sudo tail -2 /var/log/munin-node/munin-node.log
2026/10/09-12:41:03 CONNECT TCP Peer: "[::ffff:192.168.100.22]:50281" Local: "[::ffff:192.168.100.65]:4949"
2026/10/09-12:41:03 [142531] Denying connection from: ::ffff:192.168.100.22
The connection opens and is closed immediately. If you see “Denying connection” with your master’s IP, the allow regex is wrong. If nothing shows up in the log at all, it’s the firewall. On RHEL that log lives in /var/log/munin-node/; on Ubuntu it’s /var/log/munin/munin-node.log.
Configure the Munin master
The master’s main file is /etc/munin/munin.conf, and it ships with a [localhost.localdomain] entry. I commented that out and put my nodes in their own file under /etc/munin/munin-conf.d/, which munin.conf already includes. That keeps your changes out of the packaged file:
cat /etc/munin/munin-conf.d/lab.conf
# Nodes polled by this master. Format: [Group;hostname]
[Lab;linux1]
address 127.0.0.1
use_node_name yes
[Lab;app1]
address 192.168.100.65
use_node_name yes
The part before the semicolon is the group, which becomes a section on the web page. Use it for “Web”, “DB”, “Production”, whatever helps. Without a group, Munin takes the domain part of the name.
Don’t wait five minutes to find out if it works. Run the cron job by hand as the munin user:
sudo -u munin /usr/bin/munin-cron
sudo tail -4 /var/log/munin/munin-update.log
2026/10/09 12:40:20 [INFO]: Munin-update finished for node Lab;linux1 (7.11 sec)
2026/10/09 12:40:20 [INFO] Reaping Munin::Master::UpdateWorker<Lab;app1>. Exit value/signal: 0/0
2026/10/09 12:40:20 [INFO] Reaping Munin::Master::UpdateWorker<Lab;linux1>. Exit value/signal: 0/0
2026/10/09 12:40:21 [INFO]: Munin-update finished (7.46 sec)
Exit value 0 for both nodes. Always run it as munin, not root. Running as root leaves root-owned RRD files behind that the cron job can’t write to later.
Alert thresholds live on the master
Plugins come with their own warning and critical levels, but you can override them per node in the master config. App1 runs a busy Docker worker, so I added load thresholds to its block:
[Lab;app1]
address 192.168.100.65
use_node_name yes
# thresholds live on the master, per node
load.load.warning 2
load.load.critical 4
The format is plugin.field.warning. Anything over a threshold lands on the Problems page, and munin-limits can send it to email or Nagios.
On the node’s load page, the warning level shows up as a dashed line, and the field table at the bottom lists Warn 2 and Crit 4:

Let the web interface through Apache
Here’s the step that trips people up. Ubuntu’s /etc/apache2/conf-available/munin.conf says Require local, so the pages only open from the server itself. From my PC I got a 403:
curl -s -o /dev/null -w "%{http_code}\n" http://192.168.100.71/munin/
403
I added my LAN under both Require local lines (one for /var/cache/munin/www, one for the CGI directory) and reloaded:
grep -n "Require" /etc/apache2/conf-available/munin.conf
17: Require local
18: Require ip 192.168.100.0/24
23: Require local
24: Require ip 192.168.100.0/24
sudo apache2ctl configtest && sudo systemctl reload apache2
Syntax OK
Now the same request returns 200. Don’t open Munin to the whole internet like this. If it has to be reachable from outside, put basic auth in front of it (htpasswd -c /etc/munin/munin-htpasswd admin plus AuthType Basic and Require valid-user) or reach it over a VPN or an Nginx reverse proxy with TLS.
Fixing a bogus critical alert
After the first run, the overview showed Critical (1) on app1 under “sensors”. The Problems page pointed at HDD temperature:

The graph was blank, so I asked the plugin directly:
sudo munin-run hddtemp_smartctl
nvme0n1.value 11759
sudo munin-run hddtemp_smartctl config | grep critical
nvme0n1.critical 60
11,759 °C. That’s a VMware virtual NVMe disk returning nonsense SMART data, and munin-node-configure happily enabled the plugin anyway. On a VM there’s no real disk temperature to measure, so it went:
sudo rm /etc/munin/plugins/hddtemp_smartctl
sudo systemctl restart munin-node
munin-run is the tool to remember here. It runs any plugin on the node exactly as munin-node would, so you can see raw values without waiting for the master or squinting at graphs.
Setup confirmation
About 30 minutes after the first run, here’s how I checked that everything holds together. On the master, munin-update has been finishing every five minutes without errors:
grep "Munin-update finished (" /var/log/munin/munin-update.log | tail -3
2026/10/09 13:00:09 [INFO]: Munin-update finished (8.05 sec)
2026/10/09 13:05:10 [INFO]: Munin-update finished (8.43 sec)
2026/10/09 13:10:09 [INFO]: Munin-update finished (8.11 sec)
ls /var/lib/munin/Lab/ | cut -d- -f1 | sort | uniq -c
227 app1
546 linux1
systemctl is-active munin-node apache2
active
active
That’s one RRD file per data series, for both nodes. The node on RHEL is up and enabled:
systemctl status munin-node --no-pager | head -4
● munin-node.service - Munin Node
Loaded: loaded (/usr/lib/systemd/system/munin-node.service; enabled; preset: disabled)
Active: active (running) since Fri 2026-10-09 12:42:30 PKT; 28min ago
Docs: man:munin-node(1)
And in the browser, http://192.168.100.71/munin/ lists both nodes under the Lab group, with zero problems now that the bogus disk sensor is gone:

App1’s CPU graph is filling in from the remote node. It’s a 2-vCPU VM (hence the 200% scale) with the Docker worker keeping one core busy, which matches what the server is actually doing:

If you see your nodes on the overview and lines starting to appear in the day graphs, the master and node are talking and you’re done. The week, month and year graphs fill in on their own over time.
Frequently asked questions
How often does Munin collect data?
Every five minutes, from /etc/cron.d/munin. You can change the cron schedule, but the RRD files are built for five-minute steps, so going faster doesn’t give you more detail. For per-second metrics, look at something like Zabbix or Prometheus.
Why does a new node show no graphs?
Give it two or three runs (10 to 15 minutes); a single data point can’t draw a line. If it’s still empty, check /var/log/munin/munin-update.log on the master for that node, then test the node with nc as shown above.
Does munin-node use much CPU or memory?
Very little. It sits idle until the master connects, runs the plugins, and goes back to sleep. Most of the work (writing RRDs and drawing graphs) happens on the master, which is where you’ll feel it once you have dozens of nodes.
Munin vs Nagios: which one do I need?
They answer different questions. Munin shows trends and history (“memory has been creeping up all week”), while Nagios is built for alerting on what’s broken right now. Plenty of shops run both, and munin-limits can even feed Nagios. For a broader view, see our Linux system monitoring overview.
Is Munin still maintained?
The 2.0 branch used here is still the stable line packaged by Ubuntu and EPEL (2.0.76 on both). There’s a long-running 2.999/3.0 development branch with a different web front end, but for production installs the distro 2.0 packages are what you want.