Monitor Tool(2)Munin

Monitor Tool(2)Munin

I used to install this tool on my ubuntu system, it is simple and powerful than I thought.

1. Server Side
Install the Server Side on ubuntu14.04
Make sure my system is update
>sudo apt-get update
>sudo apt-get dist-upgrade

Install the apache server
>sudo apt-get install apache2

Install the Server Side
>sudo apt-get install munin

Change configuration
>cd /etc/munin
>vi munin.conf 

dbdir   /var/lib/munin htmldir /var/cache/munin/www logdir /var/log/munin rundir  /var/run/munin

[ubuntu-master2]    address 10.190.191.176    use_node_name yes [ubuntu-slave1]    address 10.190.191.136    use_node_name yes

…some other server

There is a file named apache.conf, we may link that to this directory.
>cd /etc/apache2/conf-enabled
munin.conf -> ../conf-available/munin.conf

>cd ../conf-available/
munin.conf -> ../../munin/apache.conf

Edit this file to change everything to Allow from all
Allow from all

Open the apache2 configuration
>vi /etc/apache2/apache2.conf
ServerName ubuntu-master2

<Directory />       

Options FollowSymLinks       

AllowOverride None       

Require all granted

</Directory>

2. Client Side

Install the client tool
>sudo apt-get install munin-node

Edit the Conf
>vi /etc/munin/munin-node.conf
allow ^10\.190\.191\.176$

That is my master or server side IP.

3. Execute command to Start
On client
>sudo /etc/init.d/munin-node stop

>sudo /etc/init.d/munin-node start

On Server
>sudo /etc/init.d/munin restart

>sudo service apache2 restart

By the way, make sure we disable the firewall
>sudo ufw disable


4. Build and Install from the Source
http://munin.readthedocs.org/en/latest/installation/install.html#installing-munin-from-source
https://github.com/munin-monitoring/munin/tree/master


References:
http://www.arthurtoday.com/2012/10/ubuntu-1204-install-and-setting-munin.html#.U83v14BdUYc
http://sillycat.iteye.com/blog/562698
http://munin-monitoring.org/

https://www.digitalocean.com/community/tutorials/how-to-install-munin-on-an-ubuntu-vps
http://ubuntuserverguide.com/2012/08/how-to-install-and-configure-munin-on-ubuntu-server-12-04.html

你可能感兴趣的:(Monitor)