Ganglia监控 Yum 安装


一、简介:


    Ganglia由gmond、gmetad和gweb三部分组成。


    1.服务器端(指的是汇总收集的监控数据机器):主要安装 gmetad  与 gweb ;如果安装同时安装了 gmond ,服务        器端的这台机器监控数据也可以被收集。

    2.客户端(指的是收集监控数据的机器):主要安装 gmond 即可。

    3.显示端(指的就是一个web站点):主要安装 gweb。


二、实验环境:


    1.centos 7.0

    2.Ganglia 5.7


三、安装方式: 


    1.yum install  ganglia-gmetad.x86_64

    2.yum install  ganglia-gmond.x86_64

    3.yum install  ganglia-gweb


四、配置文件修改:


    默认yum 安装的配置文件位置: /etc/ganglia/*

1.gmetad 配置文件(无须修改)


 40 # data_source "my cluster" 10 localhost  my.machine.edu:8649  1.2.3.5:8655
 41 # data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651
 42 # data_source "another source" 1.3.4.7:8655  1.3.4.8
 43 
 44 data_source "my cluster" localhost


2.gmond 配置文件修改


 29 cluster {
 30   name = "my cluster"    #修改成和gmetad一致,默认gmetad 为 "my cluster"
 31   owner = "unspecified"
 32   latlong = "unspecified"
 33   url = "unspecified"
 34 }


3.httpd配置文件修改


# vim /etc/httpd/conf/httpd.conf

119 #DocumentRoot "/var/www/html"     #将本行注释


#vim /etc/httpd/conf.d/ganglia.conf


#
# Ganglia monitoring system php web frontend
#

#Alias /ganglia /usr/share/ganglia

#添加内容如下:
<VirtualHost *:80>

	DocumentRoot /usr/share/ganglia
	<Directory "/usr/share/ganglia">
		
		AllowOverride None   
   	 	Require all granted	
		Order deny,allow
		Allow from all

	</directory>

</virtualHost>


#注释默认的配置信息

#<Location /ganglia>
#  Require local
  # Require ip 10.1.2.3
  # Require host example.org
#</Location>


五、启动服务:


    #service gmetad start

    #service gmond start

    #service httpd start


六、浏览器浏览:http://x.x.x.x


wKioL1k_bUCBCJeRAAGp2yDcESk542.png-wh_50


七、思考问题:


    1.apache 标签: [ Location ]  [ AllowOverride ]  [ Require ]