Welcome to Aquilaweb
MVP David Allen's weblog advising on"After creating a Windows service monitor, how does one configure a recovery task to automatically start the service on failure?" is a question I have been asked many times and seen asked on forums, so I have put together this quick blog on how to do it.
This just covers the Recovery Task, not the creation of the whole monitor.
1. Locate your monitor, right click and select Properties. This example is using the Messenger service.
2. Select the Diagnostic and Recovery tab, then select Add under Configure recovery tasks and click Recovery for critical health state.
3. The Create Recovery Task Wizard will open, select Run Command as the type of Recovery task to create and then select a destination Management Pack. Click Next.
4. Give your recovery task a name and description if required. Select the health state for which the recovery action will run and recovery target to what is relevant for your monitor. Make sure the Run recovery automatically is checked if you want the task to run automatically. Click Next.
5. In Full path to file type the command %windir%\System32\net.exe. In Parameters, type start Messenger, obviously replace Messenger with relevant service. Set working directory as '%Windir%' and set an appropriate timeout based on how long the service usually takes to start. Click Create.
6. There isn't a stage 6, you're done. :-)
05 Jun, 2008 | David