If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Script to detect server response time & reboot if necessary...

At my university we use a server for learning ASP by making dynamic web pages. When a page with some dodgy code is uploaded and run, the server confuses itself and needs to be rebooted before anyone can do anything with it. The only people with the ability to reboot the server are a few IT staff. The problem is that with so many people using it, it often goes down and it takes ages for someone to get round to checking their emails and rebooting it.

What I want to do is create a script/program that checks the server response time every 2 minutes or so and if it is over a certain time (1 minute), to reboot the server automatically. I will have full access to the server etc.

I would like some pointers on where to start.

E.g. what language to use, how to run the script every 2 minutes etc...

The server is running Microsoft Windows Server 2003. I'm pretty sure I could find a reliable server to run the script. I have access to a couple of other servers. Currently to restart it, I simply login using VNC and do a manual restart...all very basic stuff.

When it goes down it's only the http sites. FTP still works so the reboot script could be hosted and run locally but triggered from another machine.