CentOS 6.4 Installation Ganglia

Source: Internet
Author: User
Tags gpg

1. Search method

There are no ganglia in the official CentOS repositories, and ganglia source installation relies on too much.

Discover the Enterprise Linux add-on package (Epel) contains the complete build system, upgrade manager, Image Manager, and more.

EPEL (warehouse with various versions of the package) (specific instructions can be viewed:http://fedoraproject.org/wiki/EPEL/zh-cn)


CentOS Add the Epel source, which is actually the repository address of Fedora:

http://download.fedoraproject.org/pub/epel/


according to different versions of CentOS, can be installed to the host via RPM

RPM-UVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm


其实上面安装的那个包就是在你系统/etc/yum.repos.d/下释放了2个yum源的repo文件而已:

epel.repo(默认是使用这个的-稳定版)、

   epel-testing.repo


after installation, you need to import the corresponding GPG Key , already RPM to your host (under/ETC/PKI/RPM-GPG), operations such as:

RPM--import/etc/pki/rpm-gpg/rpm-gpg-key-epel-6

This completes the addition of the Epel warehouse!



2.1 Server-side installation

The ganglia server collects the monitor-side information and provides the access interface, which is installed using the following command:

Yum Install ganglia ganglia-devel Ganglia-gmetad ganglia-gmond ganglia-web Ganglia-gmond-python

2.2 Server-side configuration

Vim/etc/ganglia/gmetad.confdata_source "My cluster" localhost

Just change the data_source line,"My Cluster" represents the name of the cluster, localhost, is the name of the machine to monitor (this is the local machine, the client and the server side of the same virtual machine), default Port 8649.

If you do not modify localhost, you need to write the IP address and host name of the monitored service to the /etc/hosts file.


2.3 Server-side Apache configuration
Vim/etc/httpd/conf.d/ganglia.confalias/ganglia/usr/share/ganglia<location/ganglia>order deny,allow# Deny From all# to 127.0.0.1# allow from:: 1Allow from all# to .example.com</location>

As a test, you can do the configuration as above.


Start the service:

Service Gmond startservice httpd startservice Gmetad start


3.1 Client Installation

Yum Install ganglia Ganglia-gmond


3.2 Client Side configuration

Vim/etc/ganglia/gmond.confcluster {name = "My cluster"//simply change this line, set to Gmetad data_source the specified name can be owner = "Unspec ified "Latlong =" unspecified "url =" Unspecified "}

Service Gmond Start



3.3 Turn off SELinux on the server (server side and client)

Vim/etc/selinux/config

selinux=enforcing//Change to disable

You can use the command Setenforce to close SELinux without restarting and refresh the page to access it.

Note: When configured, name in the Gmetad The configuration name of Cluser with Gmond must be the same before you can see the data on the Web.


4. Summary

Since then, the simple configuration of ganglia has been completed, just open the browser : http://server_ip (host IP)/ganglia

You can monitor the client's hardware information on the server side. Finally attach the architecture diagram of ganglia: 650) this.width=650; "Src=" http://img.blog.csdn.net/20131108162935843?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvcgfydgljdwxhcl92axa=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/ Gravity/center "style=" border:none; "/>









This article from "Guangzhou, Rain People" blog, please be sure to keep this source http://liulihuan.blog.51cto.com/8018739/1636976

CentOS 6.4 Installation Ganglia

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.