ServerWatcher will let you execute custom Bean Shell scripts every time a server is tested. To add a Bean Shell script to a server simply select the server in the servers tab and click the {bsh} button. Your script will be executed every time the server is tested as soon as the test is complete, thus allowing you to do cool things like fire off a script that will restart the server, or anything else you can think of.

Once you've clicked the {bsh} button all you have to do is enter your script into the text area and save it. If there is a problem with your script ServerWatcher will bring up an error dialog when it tries to use it. The current Server instance will be available via the "server" variable in the Bean Shell context so that you can know if it's up, or down, who is being notified, the url, and everything else that might be useful to your script. Obviously, to make this useful you'll need to first familiarize yourself with the Server.java class in the source code. See the developers page for more details.

To remove a Bean Shell script you do the same thing you would to add one except save that you then save an empty script.