It would be a bonus if it could detect ghs drop for x seconds then reboot as well.
you'd be better off running the reboot.cgi URL web command from a remote computer on a looped script for that.
and since it would be driven from a remote machine, it would be possible to read the value off your pool's page and then do some type of stop limit type trigger for it
I'm not much of a web coder but I've seen stuff like this in action. probably not hard for those into that
Good idea.
btw:
there's a nice tool/firefox plugin used for web-testing you can use with nearly zero knowledge about programming.
for reloading the status page and clicking the restart-btn in case of crash, this will do the job for you I guess
Not sure about checking a value on one page and trigger an action based on it on another webpage (check pool restart miner).
http://docs.seleniumhq.org/projects/ide/