Poor Man's Guide for Monitoring a Website Using Python on Ubuntu and Restarting Apache when it is down.
http://www.mos3abof.com/poor-man-website-python-monitor.html