一、环境
Redhat 6.8 x86_64
ganglia 3.7.2
二、步骤
1.安装epel源
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
2.安装依赖
yum -y install httpd-devel automake autoconf libtool ncurses-devel libxslt groff pcre-devel pkgconfig
3.主监控点安装anglia-gmetad 和 ganglia-web
yum install -y ganglia-gmetad.x86_64 ganglia-web.x86_64
4.配置gmetad
vi /etc/ganglia/gmetad.conf
data_source "ns1" 192.168.80.182 192.168.80.183 192.168.80.184
5..安装配置监控节点的后台进程gmond
yum install -y ganglia-gmond.x86_64
vi /etc/ganglia/gmond.conf
cluster{
name = "ns1" #集群名
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
.
.
.
#mcast_join = 239.2.11.71 #关闭多播
host = 192.168.18.215 #添加发送IP/主机名
port = 8649 #默认端口
ttl = 1
.
.
.
udp_recv_channel{
#mcast_join = 239.2.11.71
port = 8649
bind = 192.168.80.182 #接收地址
retry_bind = true
6.启动服务
service gmetad start
service gmond start
service httpd start
http://192.168.80.182/ganglia