码迷,mamicode.com
首页 > 其他好文 > 详细

ganglia监控安装部署

时间:2018-02-23 14:44:27      阅读:170      评论:0      收藏:0      [点我收藏+]

标签:star   lin   host   post   body   local   chkconfig   blank   /etc/   

安装ganglia监控

yum install epel-release

主节点:

yum -y install ganglia-gmetad

yum -y install ganglia-web

所有节点:

yum -y install ganglia-gmond

 

主节点上配置:

vi /etc/ganglia/gmetad.conf

data_source "my cluster" FlinkMaster FlinkNode1 FlinkNode2

vi /etc/httpd/conf.d/ganglia.conf

<Location /ganglia>

  Order deny,allow

  Allow from all

  # Require local

  # Require ip 10.1.2.3

  # Require host example.org

</Location>

vi /etc/httpd/conf/httpd.conf

<Directory />

    #AllowOverride none

    #Require all denied

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    allow from all

</Directory>

所有节点配置:

vi /etc/ganglia/gmond.conf

cluster {

  name = " my cluster "

  owner = "unspecified"

  latlong = "unspecified"

  url = "unspecified"

}

启动服务:

主节点:

service gmetad restart

service gmond  start

service httpd  restart

chkconfig gmetad on

chkconfig gmond on

其他节点:

service gmond  restart

chkconfig gmond on

最后通过网址访问:http://service_ip/ganglia

ganglia监控安装部署

标签:star   lin   host   post   body   local   chkconfig   blank   /etc/   

原文地址:https://www.cnblogs.com/weidafei/p/8461764.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!