Difference between revisions of "Munin on Centos 6.5"

From vpsget wiki
Jump to: navigation, search
Line 23: Line 23:
 
  Allow from all
 
  Allow from all
 
  </Directory>
 
  </Directory>
 +
 +
Open:
 +
/etc/munin/munin.conf
 +
 +
Edit:
 +
#Uncomment the following lines
 +
dbdir /var/lib/munin
 +
htmldir /var/www/html/munin
 +
logdir /var/log/munin
 +
rundir /var/run/munin
 +
# a simple host tree. Set your system name
 +
[your_server_name]
 +
address 127.0.0.1
 +
use_node_name yes
 +
 +
Edit rules:
 +
chown -R munin:munin /var/www/html/munin/
 +
 +
Create new user 'munin' and password for this user:
 +
htpasswd -cm /etc/munin/munin-htpasswd munin
 +
 +
Start Munin, turn on autostarting, restart apache:
 +
  /etc/init.d/munin-node start
 +
  chkconfig munin-node on
 +
  service httpd restart
 +
Open Munin GUI: http://yourdomain/munin/
 +
 +
 +
== '''Adding new server for monitoring''' ==
 +
 +
Install Munin on your client system:
 +
yum install munin-node -y
 +
Open:
 +
/etc/munin/munin-node.conf

Revision as of 13:29, 2 June 2015

Installation

Add epel repository:

yum install epel-release

Install Munin:

yum install munin munin-node -y


Munin configuring

Open:

nano /etc/httpd/conf.d/munin.conf

Insert after comments:

Alias /munin /var/www/html/munin
<Directory /var/www/html/munin>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Open:

/etc/munin/munin.conf

Edit:

#Uncomment the following lines
dbdir /var/lib/munin
htmldir /var/www/html/munin
logdir /var/log/munin
rundir /var/run/munin
# a simple host tree. Set your system name
[your_server_name]
address 127.0.0.1
use_node_name yes

Edit rules:

chown -R munin:munin /var/www/html/munin/

Create new user 'munin' and password for this user:

htpasswd -cm /etc/munin/munin-htpasswd munin

Start Munin, turn on autostarting, restart apache:

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

Open Munin GUI: http://yourdomain/munin/


Adding new server for monitoring

Install Munin on your client system:

yum install munin-node -y

Open:

/etc/munin/munin-node.conf