Skip to content

Instantly share code, notes, and snippets.

@mackuba
Created June 4, 2024 23:06
Show Gist options
  • Save mackuba/1d298aba7a96d40b232c4fe51a99390f to your computer and use it in GitHub Desktop.
Save mackuba/1d298aba7a96d40b232c4fe51a99390f to your computer and use it in GitHub Desktop.
Munin CGI configuration to allow zooming in charts
[Unit]
Description=Munin graph CGI
After=network.target syslog.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/spawn-fcgi -n -s /var/run/munin/fastcgi-graph.sock -u www-data /usr/lib/munin/cgi/munin-cgi-graph
TimeoutSec=15
Restart=on-failure
RestartSec=1
SyslogIdentifier=munin-cgi
[Install]
WantedBy=multi-user.target
sudo apt-get install spawn-fcgi libcgi-fast-perl
# add /etc/systemd/system/munin-cgi.service
sudo systemctl enable --now munin-cgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment