How can I set up Ganglia so that I get an email if a machine in the cluster is using, for example, greater than 95% of physical RAM?
Ganglia is not meant to to do alerting. It is designed to provide performance metrics for capacity planning. For alerting I would advice something like Nagios. There is however a addon for ganglia that does alerting: ganglia-alert. Did not use it but it looks promising.