How to install Ganglia on CentOS 6

Install EPEL repository

yum install epel-release

Install the required packages

yum install httpd ganglia ganglia-gmetad ganglia-web ganglia-gmond

Configuration on the server

Modify source line to add the client

vi /etc/ganglia/gmetad.conf

data_source "my servers" localhost

/etc/ganglia/gmond.conf

cluster {
  name = "my servers"
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
}

udp_send_channel {
#  mcast_join = 239.2.11.71
  host = 192.168.100.26
  port = 8649
  ttl = 1
}

udp_recv_channel {
#  mcast_join = 239.2.11.71
  port = 8649
#  bind = 239.2.11.71
  retry_bind = true
}

Edit ganglia.conf

vi /etc/httpd/conf.d/ganglia.conf

<Location /ganglia>
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1 192.168.100
  Allow from ::1
</Location>

/etc/init.d/httpd restart

Configuration on each node

yum install ganglia ganglia-gmond

vi /etc/ganglia/gmond.conf

cluster {
  name = "my servers"
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
}

udp_send_channel {
#  mcast_join = 239.2.11.71
  host = 192.168.100.26
  port = 8649
  ttl = 1
}

udp_recv_channel {
# mcast_join = 239.2.11.71
  port = 8649
#  bind = 239.2.11.71
  retry_bind = true
}

/etc/init.d/gmond start