一、目的
在安装好Flume之后,需要用一个工具可以对Flume数据传输进行实时监控,这就是Ganglia
二、Ganglia介绍
(一)第一部分——gmond
(二)第二部分——gmetad
(三)第三部分——gweb
三、Ganglia安装步骤
(一)下载epel-release和ganglia
yum -y install epel-release
yum -y install ganglia-gmetad
yum -y install ganglia-web
yum -y install ganglia-gmond
(二)修改配置文件ganglia.conf
[root@hurys22 ~]# vi /etc/httpd/conf.d/ganglia.conf
<Location /ganglia>
Require ip 192.168.0.22
# Require ip 10.1.2.3
# Require host example.org
Require all granted
</Location>
(三)修改配置文件gmetad.conf
[root@hurys22 ~]# vi /etc/ganglia/gmetad.conf
44 data_source "my cluster" hurys22
(四)修改配置文件gmond.conf
[root@hurys22 ~]# vi /etc/ganglia/gmond.conf
30 name = "my cluster"
31 owner = "unspecified"
32 latlong = "unspecified"
33 url = "unspecified"
50 host = hurys22
51 port = 8649
52 ttl = 1
57 # mcast_join = 239.2.11.71
58 port = 8649
59 bind = 0.0.0.0
60 retry_bind = true
(五)修改配置文件config
[root@hurys22 ~]# vi /etc/selinux/config
7 SELINUX=disabled
(六)文件赋权
chmod -R 777 /var/lib/ganglia
(七)服务器重启
reboot
(八)启动 ganglia
sudo systemctl start gmond
sudo systemctl start httpd
sudo systemctl start gmetad
(九)打开网页浏览 ganglia 页面
http://hurys22/ganglia
乐于奉献共享,帮助你我他!