This article explains how to install Munin Server on CentOS and Redhat. This article doesn’t deal with the client (node) side of things. The Munin Node is documented here.
Install the Munin Server packages:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum groupinstall "Web Server" yum install -y munin php
You can change the schedule by editing the file “/etc/cron.d/munin”:
The above commands will install the “munin-node” (the client side of things) but we can ignore them for now. I suppose most people want to know how their Munin Server is performing too so installing the node on the server system seems sensible.
Now we need to edit the Munin Server config file “/etc/munin/munin.conf”. The default looks like the following. Note that i’ve removed all comments and empty lines:
includedir /etc/munin/conf.d graph_strategy cron cgiurl_graph /munin-cgi/munin-cgi-graph html_strategy cron [localhost] address 127.0.0.1 use_node_name yes
I’ve changed my “/etc/munin/munin.conf” to look like this:
dbdir /var/lib/munin htmldir /var/www/html/munin logdir /var/log/munin rundir /var/run/munin includedir /etc/munin/conf.d graph_strategy cron cgiurl_graph /munin-cgi/munin-cgi-graph html_strategy cron [localhost] address 127.0.0.1 use_node_name yes [agix-utility] address utils.agix.com.au use_node_name yes
As you can see, i’ve added a new node to monitor. The ‘section’ is called “[AGIX-Utility-Server]” and the FQDN (the node’s IP address is acceptable too) is “utils.agix.com.au”.
Now to setup the web interface login:
htpasswd -c /etc/munin/munin-htpasswd admin
And visit the web interface:
http:///munin