Ganglia Installation and configuration

Source: Internet
Author: User

A ganglia monitoring is installed for Ceph, as follows.

1. Environmental statement

Ceph is the 3 physical machines installed on the centos6.5: Mon0, OSD1, OSD2, so you need to install Gmond on all three machines, OSD2 on Gmetad.

2. Installation process

Install the Epel source first:

RPM-IVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
To install a dependency package:
Yum Install Apr-devel Expat-devel
Install Gmond in Mon0 and OSD1:
Yum Install  ganglia ganglia-gmond httpd php Apr apr-util
To install Gmetad on OSD2:
Yum Install  ganglia Ganglia-gmetad ganglia-gmond ganglia-web httpd php Apr apr-util
3. Configuration

To configure the Web:

Mkdir-p/var/www/html/ganglia/   //Create a ganglia folder under the home directory to access Gangliacp-a/usr/share/ganglia/*/var/www/html/ ganglia/   //Copy Ganglia website code to this directory chkconfig gmond onchkconfig Gmetad onchkconfig httpd on

The owner of the default /var/lib/ganglia/rrds is ganglia, do not have to be like the internet said to be renamed nobody.

The /var/www/html/ganglia/conf.php may not be valid and requires a manual copy:

CP  /usr/share/ganglia/conf.php/var/www/html/ganglia

You may also encounter Web Access forbidden on centos6.5, and you need to modify the/etc/httpd/conf.d/ganglia.conf:

Alias/ganglia/usr/share/ganglia  <Location/ganglia>    Order deny,allow    deny from all    to All   //modify to all to allow from    :: 1    # example.com  </Location>

Configuration /etc/ganglia/gmond.conf:

cluster {  name = "Ceph"   //cluster name  owner = "Unspecified"  Latlong = "unspecified"  url = " Unspecified "}/* the host section describes attributes of the host, like the location */host {location  =" unspecified "}/* feel free to specify as many udp_send_channels as".  Gmond used to only support have   a single channel */udp_send_channel {  host = 192.168.108.4   //gmetad ip
   port = 8649}/* You can specify as many udp_recv_channels as a well. */udp_recv_channel {  port = 8649  bind = 192.168.108.3   //natively IP  family = inet4}
Configuration/etc/ganglia/gmetad.conf, just modify one line here:
Data_source "Ceph" 192.168.108.4:8649//gmetad IP
Start the various services, and then you can see the monitoring interface in the Web input gmetad_ip/ganglia.

The above is a unicast configuration, there is a multicast configuration, you can query.

Ganglia Installation and configuration

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.