#!/bin/bash

/root/spark-ec2/copy-dir /etc/ganglia/

# Start gmond everywhere
/etc/init.d/gmond restart

for node in $SLAVES $OTHER_MASTERS; do
  ssh -t -t $SSH_OPTS root@$node "/etc/init.d/gmond restart"
done

/etc/init.d/gmetad restart

# Start http server to serve ganglia
/etc/init.d/httpd restart

#!/bin/bash

/root/spark-ec2/copy-dir /etc/ganglia/

# Start gmond everywhere
/etc/init.d/gmond restart

for node in $SLAVES $OTHER_MASTERS; do
  ssh -t -t $SSH_OPTS root@$node "/etc/init.d/gmond restart"
done

# gmeta needs rrds to be owned by nobody
chown -R nobody /var/lib/ganglia/rrds
# cluster-wide aggregates only show up with this. TODO: Fix this cleanly ?
ln -s /usr/share/ganglia/conf/default.json /var/lib/ganglia/conf/

/etc/init.d/gmetad restart

# Start http server to serve ganglia
/etc/init.d/httpd restart

Fix a couple of ganglia specific bugs
Fix a couple of ganglia specific bugs
