Install Ganglia 3.1.7 @Centos5.4_x64

confuse-2.7.tar.gz
libconfuse-2.6-2.el5.rf.x86_64.rpm
libconfuse-devel-2.6-2.el5.rf.x86_64.rpm
rrdtool-1.4.4.tar.gz
ganglia-3.1.7.tar.gz
apr-1.2.7-11.el5_5.3.x86_64.rpm
apr-devel-1.2.7-11.el5_5.3.x86_64.rpm

tar -zxf confuse-2.7.tar.gz
cd confuse-2.7
./configure
make
make install
rpm -ivh libconfuse-2.6-2.el5.rf.x86_64.rpm

rpm -ivh apr-1.2.7-11.el5_5.3.x86_64.rpm
rpm -ivh  apr-devel-1.2.7-11.el5_5.3.x86_64.rpm

tar -zxf rrdtool-1.4.4.tar.gz
cd rrdtool-1.4.4
./configure –prefix=/usr/local/rrdtool
./configure
make && make install

 

tar -zxvf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure –with-gmetad –enable-gexec –sysconfdir=/etc/ganglia –prefix=/usr/local/ganglia –with-librrd=/usr/local/rrdtool/
make
make install

cp gmetad/gmetad.init
/etc/init.d/gmetad
cp gmond/gmond.init /etc/init.d/gmond
vi /etc/init.d/gmond      # change GMOND=/usr/local/ganglia/sbin/gmetad
vi /etc/init.d/gmetad     # change GMETAD=/usr/local/ganglia/sbin/gmetad
mkdir -p /var/lib/ganglia/rrds
chown nobody.nobody /var/lib/ganglia/rrds
mkdir /etc/ganglia
gmond/gmond -t | tee /etc/ganglia/gmond.conf
cp gmetad/gmetad.conf /etc/ganglia/
vim /etc/ganglia/gmond.conf

data_source “blue” localhost

vim /etc/ganglia/gmetad.conf

cluster {

name = “blue

owner = “unspecified”

latlong = “unspecified”

url = “unspecified”}

/etc/init.d/gmond start
/etc/init.d/gmetad start

 

 

########## client install ############

tar -zxf confuse-2.7.tar.gz
cd confuse-2.7
./configure      #if u got error try ./configure CFLAGS=-fPIC –disable-nls
make
make install
rpm -ivh libconfuse-2.6-2.el5.rf.x86_64.rpm

rpm -ivh apr-1.2.7-11.el5_5.3.x86_64.rpm
rpm -ivh  apr-devel-1.2.7-11.el5_5.3.x86_64.rpm

 

tar -zxvf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure –enable-gexec –sysconfdir=/etc/ganglia/
make
make install
cp gmond/gmond.init /etc/init.d/gmond
gmond -t > /etc/ganglia/gmond.conf

vim /etc/ganglia/gmetad.conf

cluster {

name = “blue

owner = “unspecified”

latlong = “unspecified”

url = “unspecified”}

route add -net 239.2.11.71 netmask 255.255.255.255 dev eth1  ## if u has 2 eth

/etc/init.d/gmond start

 

 

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>