MonAMI experiences
From SysadminWiki
During the 18th gridpp collaboration meeting I was persuaded to give MonAMI a go. Installing the rpm from the sourceforge web site was easy enough. http://monami.sourceforge.net/ Also see the link from the GridPP Wiki (http://www.gridpp.ac.uk/wiki/MonAMI).
As I already use ganglia the idea was that I'd run some checks on disk space and DPM and send the output to ganglia. The first thing we noticed was that in order for some of the features to work you need to be running at least v3 of ganglia. I was still running v2.5, a quick upgrade of the gmond rpms and a new gmond.conf was required. I downloaded v3.0.2-1 as there was an rpm suitable for SL3 on http://sourceforge.net/project/showfiles.php?group_id=43021&package_id=35280
You do also require mysql. (For the DPM plugin - more later)
The main configuration file is /etc/monami.conf,
[monami] user = monami config_dir = /etc/monami.d
but this can read further files in /etc/monami.d, so we set about making a basic file to monitor the root file system. A config file called rootfs-monitoring was created.
[filesystem] name=root-fs location=/ [sample] interval=1m read = root-fs.blocks.free write = ganglia [ganglia] multicast_ip_address = 239.2.11.95 multicast_port = 8656
The format of the config file has three parts
- Describe the object to be monitored
- Define the frequency to monitor and where to send the output
- Define the output module
There is also simple output module called snapshot that is useful for debugging during installation. To use the ganglia module you need to configure the multicast address and port as defined in your /etc/gmond.conf
Once you are happy it is working you can set the service to start automatically
chkconfig --add monami chkconfig monami on service monami start
The output is automatically sent to the ganglia gmetad and can be seen as an extra graph displaying root-fs.blocks.free at the bottom of the page:
dpm storage element (http://t2lcfg.physics.ox.ac.uk/ganglia/?r=month&c=LCG+Servers&h=t2se01.physics.ox.ac.uk)
more coming soon....Peter gronbech 26 Apr 2007 (BST)
