Setting up Munin on CentOS 8 via EPEL 8 provides turnkey server performance graphs. This guide walks through configuring systemd timer units, fastcgi spawners for dynamic graph generation, and integrating the dashboard into an Nginx virtual host.
Packages:
munin • munin-node • munin-cgi • spawn-fcgi
1. Installing Packages from EPEL 8
dnf install epel-release -y
dnf install munin munin-cgi munin-node spawn-fcgi nginx -y
2. Enabling Node and Systemd Services
systemctl enable --now munin-node
systemctl enable --now munin-cgi-graph.socket
systemctl enable --now munin-cgi-html.socket
3. Nginx Server Block (/etc/nginx/conf.d/munin.conf)
server {
listen 80;
server_name munin.example.com;
location / {
root /var/www/html/munin;
index index.html;
}
location ^~ /munin-cgi/munin-cgi-graph/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/run/munin/fcgi-graph.sock;
include fastcgi_params;
}
}