Windows server 2003 detect 500 error on IIS

view full story

http://serverfault.com – I'm running IIS on Windows Server 2003, i faced problems with 500 internal server error. I want to detect if any user gets the following error and restart server if it happens. I just can't find the good way to detect if server returns this error. I tried to detect it by downloading some light page from server in period of time and checking for error, but i don't think this is optimal variant. Please share some ideas around my task. Thanks in advance. (HowTos)