[root@itr-mastertest01 ~]# vim /etc/ganglia/gmond.conf cluster { name = "cluster1" owner = "unspecified" latlong = "unspecified" url = "unspecified" } /* Feel free to specify as many udp_send_channels as you like. Gmond used to only support having a single channel */ udp_send_channel { /* mcast_join = 239.2.11.71*/ host = 192.168.2.200 port = 8649 ttl = 1 }
/* You can specify as many udp_recv_channels as you like as well. */ udp_recv_channel { /*mcast_join = 239.2.11.71*/ port = 8649 /* bind = 239.2.11.71*/ }
[root@itr-mastertest01 local]# chkconfig --levels 235 gmond on [root@itr-mastertest01 local]# chkconfig --list gmond [root@itr-mastertest01 local]# chkconfig --levels 235 gmetad on [root@itr-mastertest01 local]# chkconfig --levels 235 httpd on
[root@itr-mastertest02 local]# chkconfig --levels 235 gmond on [root@itr-nodetest01 local]# chkconfig --levels 235 gmond on [root@itr-nodetest02 local]# chkconfig --levels 235 gmond on
4、启动
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[root@itr-mastertest01 local]# service gmond start [root@itr-mastertest01 local]# service gmetad start [root@itr-mastertest01 local]# service httpd start [root@itr-mastertest01 local]# service httpd start
[root@itr-mastertest01 local]# cd installpackage/ [root@itr-mastertest01 installpackage]# tar -zxvf ganglia-web-3.5.12.tar.gz -C ../ [root@itr-mastertest01 local]# cd ganglia-web-3.5.12/ [root@itr-mastertest01 ganglia-web-3.5.12]# vim Makefile GDESTDIR = /var/www/html/ganglia APACHE_USER = apahce
[root@itr-mastertest01 ganglia-web-3.5.12]# vi /etc/httpd/conf/httpd.conf User apache 上面的用户和这样里对接 Group apache
[root@itr-mastertest01 ganglia-web-3.5.12]# make install [root@itr-mastertest01 ganglia-web-3.5.12]# LANG=en [root@itr-mastertest01 ganglia-web-3.5.12]# service httpd status httpd (pid 5810) 正在运行... [root@itr-mastertest01 ganglia-web-3.5.12]# service gmetad status gmetad (pid 5844) 正在运行... [root@itr-mastertest01 ganglia-web-3.5.12]# service gmond status gmond (pid 5874) 正在运行...
#scp conf to all node [root@itr-mastertest01 ~]# scp /usr/local/hadoop-2.4.0/etc/hadoop/hadoop-metrics2.properties itr-mastertest02:/usr/local/hadoop-2.4.0/etc/hadoop/