How to install Munin

Install EPEL repository

yum install epel-release

Install the required packages

yum install httpd munin munin-node

Start Apache and Munin


chkconfig httpd on
/etc/init.d/httpd start
chkconfig munin-node on
/etc/init.d/munin-node start


systemctl enable httpd
systemctl start httpd
systemctl enable munin-node
systemctl start munin-node

Set the password

htpasswd /etc/munin/munin-htpasswd admin

Access Munin Web Interface


Configure the client

Install required package

yum install munin-node

Edit the configuration file and add the server

vi /etc/munin/munin-node.conf

allow ^192\.168\.100\.22$

/etc/init.d/munin-node restart

Edit the configuration file on the Munin server and add the client


    use_node_name yes

/etc/init.d/munin-node restart

Important file and directories

  • Master configuration file: /etc/munin/munin.conf
  • Configuration file for Apache: /etc/httpd/conf.d/munin.conf
  • Cron file: /etc/cron.d/munin
  • Directory for log files: /var/log/munin
  • Web directory: /var/www/html/munin
  • File for credentials: /etc/munin/munin-htpasswd
  • Directory for enabled plugins: /etc/munin/plugins

Useful commands

  • View and modify which plugins are enabled: munin-node-configure
  • Display a table of plugins that will probably work: munin-node-configure --suggest
  • Print shell commands to install the plugins: munin-node-configure --shell
  • Install all new plugins: munin-node-configure --shell | sh