Get the software through EPEL reposity or alternatively from here :http://rpmfind.net/linux/rpm2html/search.php?query=ganglia-gmetad
Or if we are inclined get it installed from the source then we need to look here for tar
[file: http://ganglia.info/?page_id=66%5D
Step 1:
Installing Ganglia:
[root@pravi ~]$ sudo yum install ganglia ganglia-gmetad ganglia-gm
ond
ganglia-web
Step 2:
Setting password for user ganglia:
[root@pravi ~]$ /usr/bin/passwd ganglia
Changing password for user ganglia.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
Step 3:
Starting gmond daemon at boot:
[root@pravi ~]$ chkconfig --levels 235 gmond on
Step 4:
Started gmond daemon :
[praveen@Amazon ~]$ /etc/init.d/gmond start
Starting GANGLIA gmond: [ OK ]
step 5:
configure this file :
[praveen@Amazon ~]$ nano /etc/gmetad.conf
step 6:
configure this daemon too:
[root@pravi ~]$ chkconfig --levels 235 gmetad on
step 7:
Starting gmetad daemon:
[root@pravi ~]$ /etc/init.d/gmetad start
Starting GANGLIA gmetad: [ OK ]
Step 8:
Installing gmond on different node:
[root@pravi ~]$ sudo yum install ganglia-gmond
Step 9:
Run it different level:
[root@pravi ~]$ chkconfig --levels 235 gmond on
Step 10:
Come back to the main machine ,where ganglia install and do the following:
Change the ownership of ganglia directory to ganglia user and group:
[root@pravi ~]$ chown -R ganglia:ganglia ganglia/
Add ganglia user to the apache group:
[root@pravi html]$ usermod -G apache -a ganglia
Check the ganglia id:
[root@pravi html]$ id ganglia
uid=102(ganglia) gid=103(ganglia) groups=48(apache),103(ganglia)
[root@pravi html]$ chown -R ganglia:ganglia ganglia/
[root@pravi html]$ usermod -G apache -a ganglia
[root@pravi html]$ id ganglia
uid=102(ganglia) gid=103(ganglia) groups=48(apache),103(ganglia)
Step 11: You can view ganglia with this url:
http://<domainname or ip address>/ganglia/