How to install and configure Ganglia monitoring tool on a cluster.
Prerequisites:
- Apache (Apache2 in my case) installed on master node
Deployment plan:
- Install gmetad on Master node
- Install ganlia web front end on head machine
- Install gmond on child nodes
Install Ganglia master node packages
Install packages:
1 |
sudo apt-get install ganglia-monitor rrdtool gmetad ganglia-webfrontend |
Enable ganglia web front end for Apache2:
1 |
sudo cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf |
Restart services:
1 |
sudo service ganglia-monitor restart && sudo service gmetad restart && sudo service apache2 restart |
Open http://localhost/ganglia to check web front end.
Edit /etc/ganglia/gmetad.conf if you want to change default configuration.
Install ganglia-monitor on every child node
Only ganglia-monitor should be installed on monitored nodes.
1 |
sudo apt-get install ganglia-monitor |
Nodes should appear in http://localhost/ganglia web interface.
Edit /etc/ganglia.gmond.conf to change default configuration if needed.