Centos7.0 Ganglia监控 Yum 安装

Ganglia监控 Yum 安装


一、简介:


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


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

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

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


二、实验环境:


1.centos 7.0

2.Ganglia5.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"mycluster"10localhostmy.machine.edu:86491.2.3.5:8655
41#data_source"mygrid"501.3.4.7:8655grid.org:8651grid-backup.org:8651
42#data_source"anothersource"1.3.4.7:86551.3.4.8
43
44data_source"mycluster"localhost


2.gmond 配置文件修改


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


3.httpd配置文件修改


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

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


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


#
#Gangliamonitoringsystemphpwebfrontend
#

#Alias/ganglia/usr/share/ganglia

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

	DocumentRoot/usr/share/ganglia
	<Directory"/usr/share/ganglia">
		
		AllowOverrideNone
		Requireallgranted	
		Orderdeny,allow
		Allowfromall

	</directory>

</virtualHost>


#注释默认的配置信息

#<Location/ganglia>
#Requirelocal
#Requireip10.1.2.3
#Requirehostexample.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 ]

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim&#160;/etc/sysconfig/network-scripts/ifcfg-eth0 B...