assist me in UNIX scripting

hi ...
i want to monitor the httpd service whether its online or offline.. if httpd service goes offline/stopped then i need to get alert to my mail. how to do construct this script..

myself using RHEL4 ...

It's basically the same question asked here. Unless the circumstances have changed considerably, please do not open new threads.