December 11, 2016

Quickstart Guide How to Install Ganglia on a Raspberry Pi Cluster

Masternode

# sudo apt-get install ganglia-monitor ganglia-webfrontend
# sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf

Configuration Masternode

# sudo vi /etc/ganglia/gmetad.conf

Change data_source

data_source "CluPi" 60 localhost
# sudo vi /etc/ganglia/gmond.conf
[...]
cluster {
  name = "CluPi" ## use the name from gmetad.conf
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
}
[...]
udp_send_channel {
  #mcast_join = 239.2.11.71
  host = 192.168.1.161
  port = 8649
  ttl = 1
}
udp_recv_channel {
  #mcast_join = 239.2.11.71
  port = 8649
  #bind = 239.2.11.71
}

Restart the services

# sudo service ganglia-monitor restart
# sudo service gmetad restart
# sudo service apache2 restart

Client Installation

# sudo apt-get install -y ganglia-monitor

Client Configuration

# sudo vi /etc/ganglia/gmond.conf
[...]
cluster {
  name = "CluPi"     ## Cluster name
  owner = "unspecified"
  latlong = "unspecified"
  url = "unspecified"
[...]
[...]
udp_send_channel {
  #mcast_join = 239.2.11.71   ## Comment
  host = 1.1.1.1   ## IP address of master node
  port = 8649
  ttl = 1
}
[...]

Comment out the udp_recv_channel section with /* ... */

[...]
/* You can specify as many udp_recv_channels as you like as well.
udp_recv_channel {
  mcast_join = 239.2.11.71
  port = 8649
  bind = 239.2.11.71
}
*/
[...]

Restart the monitoring service.

sudo service ganglia-monitor restart

Sources

https://www.digitalocean.com/community/tutorials/introduction-to-ganglia-on-ubuntu-14-04

All rights reserved - 2019

Powered by Hugo & Kiss.