Skip to content

Instantly share code, notes, and snippets.

@ewencp
Created November 4, 2010 22:06
Show Gist options
  • Save ewencp/663295 to your computer and use it in GitHub Desktop.
Save ewencp/663295 to your computer and use it in GitHub Desktop.
#!/bin/bash
# See https://docs.google.com/Doc?id=dgmmft5s_45hr7hmggr for details on how this script was put together
sudo apt-get install -y build-essential libapr1-dev libconfuse-dev libexpat1-dev python-dev libpcre3-dev librrd2-dev apache2 php5-mysql libapache2-mod-php5 rrdtool
mkdir ganglia
cd ganglia
wget -O ganglia-3.1.7.tar.gz "http://downloads.sourceforge.net/project/ganglia/ganglia%20monitoring%20core/3.1.7/ganglia-3.1.7.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fganglia%2Ffiles%2Fganglia%2520monitoring%2520core%2F&ts=1288907147&use_mirror=softlayer"
tar xvf ganglia-3.1.7.tar.gz
cd ganglia-3.1.7
./configure --sysconfdir=/etc/ganglia --with-gmetad
make
sudo make install
sudo cp -r web /var/www && mv /var/www/web /var/www/ganglia
sed "s/# setuid_username \"nobody\"/setuid_username \"ganglia\"/" gmetad/gmetad.conf > my.gmetad.conf
sudo mv my.gmetad.conf /etc/ganglia/gmetad.conf
sudo mkdir -p /var/lib/ganglia/rrds/
sudo chown -R ganglia:ganglia /var/lib/ganglia/rrds/
sudo gmetad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment