We need a quick windows script that check two conditions, and if one of them fails will restart a service. There are six services running on the server at the same time, and the conditions need to be monitored for each of these six services. Most likely solution is windows scripting, but open to other technologies.
The script needs to continouosly monitor two elements for each script:
1. There is a folder the service writes to, into a file. This file must continuously grow in size (there are other files in this folder, but at least one file must grow)
2. The services being monitored continuously write xml to a telnet stream - if the a code in this xml stream changes this should also trigger the restart
If any of these conditions are triggered, then the script must simply restart a process. Lightweight solutions preferred ...