Install Munin (monitoring tool) "Go" in the Ubuntu13.10 server

Source: Internet
Author: User

The Munin monitoring tool detects all computers and records the computers that you see. Displays all information in a graphical web interface. The focus is on plug-and-play functionality. After the installation is complete, a large number of control plug-ins will be hit.

With Munin you can easily monitor your computer, network, SAN, and applications, whatever you think of. Munin used a good? RRDTool (written by Tobi Oetiker) and a framework written in Perl, and plugins can be written in any language. Munin has a master/node schema that connects the primary to all the recurring nodes and requires them to the data. It is then stored in the RRD file and updated with (if necessary) the graphics data. One of the main goals is to easily create new plugins.

Before installing Munin, make sure you have installed Ubuntu 13.10 LAMP server is installed.

Recommended reading :Ubuntu 13.04 Installation lamp\vsftpd\webmin\phpmyadmin services and Settings http://www.linuxidc.com/Linux/2013-06/86250.htm

Open terminal and enter the following command to install Munin server:

sudo apt-get install munin

After the installation is complete, you need to do some setup to make it work.
Edit the/etc/munin/munin.conf file, open the terminal, enter the command:
sudo vi /etc/munin/munin.conf

Modify the following line:

Original text:
#dbdir /var/lib/munin
#htmldir /var/cache/munin/www
#logdir /var/log/munin
#rundir /var/run/munin

After modification:

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

Original:
#tmpldir /etc/munin/templates

After modification

tmpldir /etc/munin/templates

Original:

# a simple host tree
[localhost.localdomain]
address 127.0.0.1
use_node_name yes

Note, change here, address is your IP address, localhost.localdomain is the hostname of your server.

Modified to:
[MuninMonitor]
address 127.0.0.1
use_node_name yes

You need to edit the configuration of Munin Apache

sudo vi /etc/munin/apache.conf

will take the following line:

Alias /munin /var/cache/munin/www

Modified to:

Alias /munin /var/www/munin

We also want to allow the following changes to be made from this connection outside the local computer:


Order allow,deny
Allow from localhost 127.0.0.0/8 ::1
Options None

Modified to:


Order allow,deny
#Allow from localhost 127.0.0.0/8 ::1
Allow from all
Options None

Related reading :

Ubuntu server 10.04 installs Munin monitoring Server http://www.linuxidc.com/Linux/2011-04/34477.htm

Install Munin Monitoring Server in Debian 6 http://www.linuxidc.com/Linux/2011-10/46330.htm

How to use:

1. Start, stop, and restart

The startup program is the Munin-node executable file under/etc/init.d/. It can also be started directly as a service.

# service Munin-node start        #启动 # service Munin-node stop        #停止 # service Munin-node Restart     #重启

2.2 Start

After the Munin master installation is successful. Will add a Munin user to the system. The boot server (Munin Master) cannot be started with root and can only be started with munin users. Of course, when installed, it will start by default. And every 5 minutes, Munin-cron timed tasks are performed regularly. Basically, after modifying the configuration table can be completely ignored, waiting for the service side to update themselves.

Of course if you must update immediately, you can switch to the Munin user, execute the munin-cron command.

# su Munin-c/etc/init.d/munin-cron

If you do not have an error, the information is not printed.

3 Testing

The generated monitoring HTML monitoring result "HTMLDIR/VAR/CACHE/MUNIN/WWW" is specified in the munin.conf configuration file. You only need to configure a Web server to access the target path "/var/cache/munin/www". can use the Nginx, Apache, resin and other mainstream Web server. HTML is a static file, so any Web server is possible.

To access the Web server, you can view the results.

Install Munin (monitoring tool) "Go" in the Ubuntu13.10 server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.