When we start ganglia for first time, it is required to create default configuration file by using below command

root@server#/usr/local/sbin/gmond –default >/etc/gmond.conf

Edit configuration for listening to port for accepting client data

Edit /etc/gmond.conf of server as below. Here I give Sulay as my cluster name

Cluster {

name = "SULAY"

owner = "unixadmin"

latlong = "unspecified"

url = "unspecified"

}

host {

location = "SULAY"

}

udp_recv_channel {

port = 8649

family = inet4

}

tcp_accept_channel {

port = 8649

}

3.Creat a file named /etc/gmetad.conf with below data

data_source "SULAY"localhost

4.Configuring apache.

By default apache coolstack is getting inslled on /opt/coolstack/apache2 path.

You have to change the default page of apache to the ganglia web page by editing below two lines on /opt/coolstack/apache2/conf/httpd.conf

#This is where apache looks for default page.

DocumentRoot "/usr/local/doc/ganglia/web"

#this is the path for default directory.

5.Restart/enable apache

root@server#svcadm restart svc:/network/http:apache22-csk

root@server#svcadm enable svc:/network/http:apache22-csk

6.Starting gmond and gmetad

root@server#/usr/local/sbin/gmond

root@server#/usr/local/sbin/gmetad

7.Verifying the running deamon, you can see both deamons are running . if you have any issue with starting , start execute above command with--debug=9 options (eg: /usr/local/sbin/gmond –debug=9) will give a verbose output.

root@server#ps -ef|grep gm

nobody 1903710Feb 02 ?94:12 /usr/local/sbin/gmond

nobody 1909011Feb 02 ?1416:22 /usr/local/sbin/gmetad

8.Create a startup script for starting these both applications while machine comesup.

Createthis/etc/rc3.d/S99ganglia with blow contend

/usr/local/sbin/gmond

/usr/local/sbin/gmetad

9.Change the permission of this file to executable

root@server#Chmod a+x /etc/rc3.d/S99ganglia

10.Now you can browse the ganglia portal by typing the ip or host name of the ganlia server in the browser.