How to install Munin on CentOS 6

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

Set the password

htpasswd /etc/munin/munin-htpasswd admin

Access Munin Web Interface

http://localhost/munin

Configure the client for Munin server

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

/etc/munin/munin.conf

[client]
    address 192.168.100.23
    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

Resources