in reply to script to monitor and page...

I'm not following, but I guess the answer is nagios.