February 11th, 2010, 04:22 PM
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...
Hope you can help, thanks
Tags for this Thread
Click Here to Expand Forum to Full Width