Monday, September 24, 2012

Ganglia Setup On Mac OSX

The platform is OS X Mountain Lion.

A couple of preparations:

Ganglia has so many components, configurations that makes setting it up on Mac OSX quite a task.
Using package tool would be a better choice than tar ball.

1. I upgraded XCode 4.5, since brew complained on my previous XCode 4.1. And make sure "Command Line Tool" is being installed from XCode.

2. Brew is good, and I actually blow away Mac Port for it. (They are conflicting each other... bumm).
Uninstall Mac Port.

sudo port -fp uninstall installed
sudo rm -rf \
    /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \

3. Install brew by running a single command:

ruby -e "$(curl -fsSkL"

4. Then install and config ganglia :

brew install ganglia

5. Generate config file :

gmond --default_config > /usr/local/etc/gmond.conf

6. Enable Apache and PHP. Then install additional php package for ganglia by running:

curl -s | bash -

7. Download gnaglia-web tar ball, and install it.

8. Suppose you put ganglia-web at ~/Sites/ganglia, then there at that directory is a file "conf_default.php"

spot "/usr/bin/rrdtool" in that file and replace with "/usr/local/bin/rrdtool" or other path that rrdtool is installed. Then need to run "make install" again.

9. Start gmond and gmetad.

sudo gmetad --debug=1
sudo gmond --debug=3

10. Open ganglia web page:


1 comment:

  1. Thanks for review, it was excellent and very informative.
    thank you :)