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 :)
Bit more information:
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.
If your looking for a response time monitoring tool you can find one here http://www.real-user-monitoring.com
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread