Monitoring network traffic with Munin

  • 31 Oct 2012
  • Linux, Apache

System Requirements

A server running Apache

Install Munin

 

# yum install -y munin munin-node 

 

Configuring Munin

 

# vi /etc/munin/munin-node.conf 

 

Set user and group by apache

 

host * user apache group apache setsid yes 

 

Apache configuration

Create the .htpasswd file for munin user

 

htpasswd -c /var/www/munin/.htpasswd munin 

 

Edit /etc/httpd/conf.d/munin.conf an uncomment this lines:

 

Alias /munin/ /var/www/munin/  Options None # SSLRequireSSL order deny,allow deny from all AuthType Basic AuthUserFile /var/www/munin/.htpasswd # AuthGroupFile /etc/group AuthName "munin" require user munin Satisfy Any # allow from all  

 

Don't forget to adjust your clocks

Set the correct time zone. I'm in Italy

 

cp /usr/share/zoneinfo/Europe/Rome /etc/localtime ntpdate it.pool.ntp.org 

 

Gentlemen, start your engines

 

/etc/init.d/munin-node start /etc/init.d/httpd restart 

 

I don't want to loose you

 

chkconfig munin-node on 

 

Now, you can access to your Munin GUI by visiting your_ip/munin/

web gui de Munin