Quantcast
Viewing all articles
Browse latest Browse all 18

How to Use Ganglia to monitor Ubuntu cluster

Ubuntu already has gmetad, gmond core monitoring and etc Packages

 

 

33 apt-get install libapr1-dev

34 apt-get install libconfuse-dev

35 apt-get install libexpat-dev

38 apt-get update

39 apt-get install libpcre3 libpcre3-dev

40 apt-get install libpango1.0-dev libxml2-dev

120 apt-get install chkconfig

145 apt-get install gmetad

146 apt-get autoremove

211 sudo apt-get install rrdtool

264 apt-get install daemon

414 apt-get install sysv-rc-conf

 

 

38 apt-get update

39 apt-get install libpcre3 libpcre3-dev

40 apt-get install libpango1.0-dev libxml2-dev

41 mkdir /tmp/rrdbuild

42 BUILD_DIR=/tmp/rrdbuild

43 INSTALL_DIR=/opt/rrdtool-1.4.4

44 cd /tmp/rrdbuild

 

48 wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz

 

52 gunzip *.gz

53 ls

54 tar xvf *.tar

55 ls

56 cd rrdtool-1.4.4/

57 ls

58 echo $INSTALL_DIR

 

59 ./configure –prefix=$INSTALL_DIR

60 make

61 make install

66 cd ganglia-3.1.7/

70 ./configure -with-librrd=/opt/rrdtool-1.4.4/ -with-gmetad –sysconfdir=/etc/ganglia

 

120 apt-get install chkconfig

121 chkconfig -add gmond

122 chkconfig -list gmond

 

137 cp *.* /var/www/ganglia

138 cp -R graph.d /var/www/ganglia

139 cp -R templates /var/www/ganglia

 

184 sudo gmond -t > /etc/ganglia/gmond.conf

 

244 ln –s /lib/lsb/init-functions /etc/init.d

245 ls -l init-functions

246 cp init-functions functions

 

264 apt-get install daemon

301 /usr/sbin/gmond –default_config > /tmp/Robert

 

414 apt-get install sysv-rc-conf

415 sysv-rc-conf –list gmetad

 

460 find . -name ‘modcpu.so’

461 cd /usr/lib/ganglia

 

486 cp *.* /lib

487 service gmond stop

488 service gmond start

489 service gmond stop

490 service gmond start

 

root@robert:/etc/ganglia# cd /var/www/ganglia/

root@robert:/var/www/ganglia# more conf.php

# Where gmetad stores the rrd archives.

$gmetad_root = “/var/lib/ganglia”;

$rrds = “$gmetad_root/rrds”;

 

# Leave this alone if rrdtool is installed in $gmetad_root,

# otherwise, change it if it is installed elsewhere (like /usr/bin)

define(“RRDTOOL”, “/opt/rrdtool-1.4.4/bin/rrdtool”);

 

Gmond.conf

cluster {

name = “robert”

owner = “unspecified”

latlong = “unspecified”

url = “unspecified”

}

 

host {

location = “robert-ubuntu”

}

 

Gmetad.conf

data_source “robert” localhost

 

Image may be NSFW.
Clik here to view.

The post How to Use Ganglia to monitor Ubuntu cluster appeared first on Robert Chen.


Viewing all articles
Browse latest Browse all 18

Trending Articles