Ganglia is a monitoring tool that is quite easy to install and has some cool build-in funtions.
The configuration is easy and the benefit out of it is huge, as you can monitor by default about 20 different values. Especially for LPAR or SLPAR Ganglia has some addons like cpu_entiltlement and cpu_sharedpool that are interesting to be measured over a long period of time to balance the LPARs and/or move them to different hosts.
In the following I will explain how to install ganglia and add nodes to the cluster-configuration. Additionally I try to explain how to configure the grid view in an easy way:
First of all we need to know how Ganglia works and how it is designed.
Ganglia is really split into 2 pieces of sofwarte:
Gmond is the monitoring daemon (Ganglia Monitoring Daemon) that will be installed on the nodes you want to monitor.
Gmetad is the server (Ganglia Metadata Daemon) that will process the measurments and create rrd files out of them.
As you see in the last sentence, Ganglia uses rrd to display the measured items. With some nice addon made by firstname.lastname@example.org you have the ability to display 5minute intervals, if they are not compressed already by the rrd database.
Ganglia has 2 ways to set it up.
- First is with one grid and all lpars going in this grid. For this you just need to have the gmond on all nodes and gmetad on one “server lpar” you decide to use that will have installed apache2 + php.
- In a more complex scenario which you will probably find there are different lpars listed on many different hosts.
I will catch up with scenario 1 later in this howto. First we install the gmetad and apache instance on a lpar you decide. The lpar does not have to have much RAM or cpu, as the cpu-usage is not high. The only thing is that this lpar will run an apache server with php and some different tools installed to display rrd graphs.
When you have deciced which lpar you will use download those packages from the AIX Toolbox from the IBM Webpage (http://www-03.ibm.com/systems/p/os/aix/linux/toolbox/download.html).
- Apache precompiled with php-gd (http://www.perzl.org/ganglia/apache.html)
- Ganglia components (http://www.perzl.org/ganglia/)
- libxml2 (IBM Website)
- bzip2 (IBM Website)
- expat (IBM Website)
- freetype2 (IBM Website)
- libpng (IBM Website)
- libjpeg (IBM Website)
- xmp (IBM Website)
- rrd (http://www.perzl.org/aix/index.php?n=Main.Rrdtool)
All those components are needed by the gmetad application.
When you have installed those you should install the rpm package for gmetad. This will create in AIX 5.3 following files:
Seeing the following example we have a p550 with 5 lpars, and a p505 with 2 lpars.
p550 lpars are named p550l1 until p550l5.
p505 lpars are named p505l1 until p505l2.