I have not used it myself, but the 'monit' package claims to do what you're asking (well at least restart, don't know about notification).
http://dag.wieers.com/packages/monit/
On Sun, 23 Jan 2005, Richard Worwood wrote:
I'm have a problem with one of my servers at the moment where services keep stopping and I would like to setup some kind of watchdog process to keep this in check, notify me when it happens and restart them.
Does anyone have any ideas on how I can do this?
Thanks
Richard