Install and configure the Munin monitoring server on Linux

Source: Internet
Author: User
Tags rrdtool

Install and configure the Munin monitoring server on Linux

Munin is a great system monitoring tool similar to RRD tool. It provides you with a wide range of system performance information, such as disks, networks, processes, systems, and users. These are the content that Munin monitors by default.

Use RRDtool to customize plotting to monitor Oracle databases

Simple Image Rendering using RRDtool

When installing RRDtool, the following error occurs: configure: error: Please fix the library issues listed above and try again.

RHEL5.5 installing RRDtool solves many Dependencies

Use yum to install RRDtool in CentOS

 

How does Munin work?

Munin runs in client-server mode. The Munin server processes running on the master server collect data from the local client daemon (Munin can monitor its own resources) or remote clients (Munin can monitor hundreds of machines, then it is displayed in a graphical form on its web interface.

 

Configure Munin on the server

To configure the server and client, we need to complete the following two steps.

  1. Install and configure the Munin server package so that it can collect data from the client.
  2. Install the Munin client so that the server can connect to the client daemon for data collection.

 

Install the munin server on Linux

Install the Munin server on Ubuntu/Debian-based machines:

  1. apt-get install munin apache2

Install the Munin server on a RedHat/CentOS-based machine:

Before installing Munin on a Redhat-based machine, make sure to enable the EPEL software repository, because the software repository for the Redhat-based machine does not have Munin by default.

  1. yum install munin httpd

 

Configure the Munin server on Linux

The following are the steps for starting Munini on the server:

  1. Add the host details to be monitored in/etc/munin. conf.
  2. Configure the apache web server to include the munin configuration.
  3. Create a user name and password for the web interface
  4. Restart apache server

 

Step 1

Add host entries in the/etc/munin. conf file. Add the client to be monitored to the end of the file. In this example, I added the database server to be monitored and its IP address.

Example:

  1. [db.linuxnix.com]
  2. address 192.168.1.25
  3. use_node_name yes

Save the file and exit.

 

Step 2

In the/etc/apache2/conf. d directory, edit or create the file munin. conf to include configuration related to Munin and Apache. Note that other web-related Munin configurations are stored in the/var/www/munin directory by default.

  1. vi/etc/apache2/conf.d/munin.conf

Content:

  1. Alias/munin /var/www/munin
  2. <Directory/var/www/munin>
  3. Order allow,deny
  4. Allowfrom localhost 127.0.0.0/8::1
  5. AllowOverrideNone
  6. OptionsExecCGIFollowSymlinks
  7. AddHandler cgi-script.cgi
  8. DirectoryIndex index.cgi
  9. AuthUserFile/etc/munin/munin.passwd
  10. AuthType basic
  11. AuthName"Munin stats"
  12. require valid-user
  13. <IfModule mod_expires.c>
  14. ExpiresActiveOn
  15. ExpiresDefault M310
  16. </IfModule>
  17. </Directory>

Save the file and exit.

 

Step 3

Create a username and password to view the figure of munin:

  1. htpasswd -c /etc/munin/munin-htpasswd munin

Note: For Redhat/Centos machines, to access your configuration file, replace "httpd" with "apache2" in each path ".

 

Step 4

Restart the Apache server to make the Munin configuration take effect.

Based on Ubuntu/Debian:

  1. service apache2 restart

Based on Centos/Redhat:

  1. service httpd restart

 

Install and configure the Munin client on Linux

 

Step 1

Install the Munin client on Linux

  1. apt-get install munin-node

Note: If you want to monitor your Munin server, you also need to install munin-node on the server.

 

Step 2

Edit the munin-node.conf file configuration client.

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

Example:

  1. allow ^127\.0\.0\.1$
  2. allow ^10\.10\.20\.20$
  1. # The address to which the listener belongs
  2. host *
  1. # And which port
  2. port 4949

Note: 10.10.20.20 is my Munin server. It connects to port 4949 of the client to obtain data.

 

Step 3

Restart munin-node on the client:

  1. service munin-node restart

 

Test connection

Check whether you can connect to port 4949 of the client from the server. If not, open the port in the firewall of the client machine.

  1. telnet db.linuxnix.com 4949

Visit the Munin web page

  1. http://munin.linuxnix.com/munin/index.html

I hope these will help you configure the basic Munin server.

How to install Munin on Ubuntu13.10 Server)

Install the munin monitoring server On Debian 6

Install the Munin monitoring Server on Ubuntu Server 10.04

Via: http://www.linuxnix.com/install-and-configure-munin-monitoring-server-in-linux/

Author: Surendra Anne Translator: ictlyh Proofreader: wxy

This article was originally compiled by LCTT and launched with the honor of Linux in China

This article permanently updates the link address:

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.