客戶端安裝gangliavim
1.搜索 本地yum 源是否 提供gangaliabash
[root@bogon lib]# yum search ganglia-gmondssh
2.添加本地軟件庫yum源ide
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmspa
3.安裝gmond ip
yum install -y ganglia-gmondci
4.添加開機啓動get
[root@localhost ~]# chkconfig gmond oninput
5.更改配置 it
vim /etc/ganglia/gmond.conf
name = "db"
# mcast_join = 239.2.11.71
host = 10.10.3.140
port = 8656
附上腳本
#!/bin/bash #yum install ganglia-gmond key=/root/.ssh/niu_rsainput_ip=root@$1dir=/etc/ganglia/ip=10.10.4.69#updata epel-release ssh -i $key $input_ip "rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm"# yum ganglia-gmondssh -i $key $input_ip "yum -y install ganglia-gmond"#change gmond.confssh -i $key $input_ip "sed -i 's/name = \"unspecified\"/name = \"db\"/g'" $dir/gmond.confssh -i $key $input_ip "sed -i '50a host = '$ip''" $dir/gmond.confssh -i $key $input_ip "sed -i 's/mcast_join/#mcast_join/g'" $dir/gmond.confssh -i $key $input_ip "sed -i 's/bind = 239.2.11.71/#bind =239.2.11.71/g'" $dir/gmond.conf#chkconfig ssh -i $key $input_ip "/etc/init.d/gmond start && chkconfig gmond on"