Munin: Simple Node Graphing With Minimal Setup

Munin: Simple Node Graphing With Minimal Setup

Munin is the monitoring you install when you want graphs for five servers this afternoon.

The plugin model is the appeal

A Munin plugin is an executable that prints configuration when called with config and values otherwise. That is the whole interface.

#!/bin/sh
case $1 in
  config)
    echo "graph_title Queue depth"
    echo "graph_vlabel items"
    echo "queue.label queued"
    exit 0;;
esac
echo "queue.value $(find /var/spool/myqueue -type f | wc -l)"

Drop that in the plugins directory, restart the node, and a graph appears with no configuration on the server side. For ad-hoc metrics that is faster than writing a Prometheus exporter, and our bash scripting guide covers everything else you need to write one.

Architecture

A master polls nodes every five minutes over a simple TCP protocol, stores in RRD, and regenerates static HTML. No database, no agent configuration, no service discovery.

Five minutes is fixed in practice, which is the main limitation: Munin will not show you a thirty-second spike.

Where it fits, honestly

A handful of servers, graphs you glance at, alerting you do not need. For that, Munin is lower effort than anything else here.

Beyond perhaps twenty nodes the master’s regeneration pass becomes the bottleneck, RRD’s averaging loses the detail you wanted, and the five-minute resolution hides real problems. At that point Prometheus with Grafana is the answer, per our monitoring guide, or Netdata for per-second resolution with similarly little setup.

Compare also Beszel and Glances, both of which occupy the modern version of this niche.

Operational caution

The node daemon listens on TCP 4949 and, in its default configuration, authenticates by source address only. Restrict it with the firewall rather than relying on the allow list, per our firewall basics.

The master writes HTML to a web root. Serve it behind authentication; server graphs disclose a useful amount about your infrastructure.

License

Munin is released under the GNU General Public License v2.