wget http://sourceforge.net/projects/ganglia/files/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz/download (scp root@10.215.20.232:/root/tools/ganglia-3.1.7.tar.gz .)
tar -zxf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure --prefix=/usr/local/ganglia --sysconfdir=/etc/ganglia -with-python
make && make install
sed -i 's#GMOND=/usr/sbin/gmond#GMOND=/usr/local/ganglia/sbin/gmond#g' gmond/gmond.init
cp gmond/gmond.init /etc/rc.d/init.d/gmond
/sbin/chkconfig --add gmond
/sbin/chkconfig gmond on
/usr/local/ganglia/sbin/gmond -t |tee /etc/ganglia/gmond.conf
ln -s /usr/local/lib/libpcre.so.1 /lib64
service gmond start
tar -zxf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure --prefix=/usr/local/ganglia --sysconfdir=/etc/ganglia -with-python
make && make install
sed -i 's#GMOND=/usr/sbin/gmond#GMOND=/usr/local/ganglia/sbin/gmond#g' gmond/gmond.init
cp gmond/gmond.init /etc/rc.d/init.d/gmond
/sbin/chkconfig --add gmond
/sbin/chkconfig gmond on
/usr/local/ganglia/sbin/gmond -t |tee /etc/ganglia/gmond.conf
ln -s /usr/local/lib/libpcre.so.1 /lib64
service gmond start