Uptime Infrastructure Monitor is able to monitor the status of a Windows service and automatically restart it by using a combination of the Windows Service monitor and an action profile. To set this up:
- Ensure that the agent CmdsPassword value in registry key HKLM\Software\\uptime software\uptime agent\ is set and then restart the Uptime Infrastructure Monitor agent service on your target agent system.
- Create an action profile to restart your target service. Under the Windows Service section, enter the following values:
- Windows Host: name of the target agent you would like to restart the service on.
- Agent Port: agent listening port (9998 by default).
- Windows Service: full Windows service name.
- Action: Start.
- Uptime Infrastructure Monitor Agent Password: password as set in step 1.
- Use SSL: Yes/No.
- Save the Action Profile and test it to ensure the service is restarted correctly.
- Create a Windows Service check service monitor against the agent you wish to monitor the service on. Be sure to use the full service name within the monitor settings and choose to alert if the service is not running. Assign the service monitor to the action profile created in step 2.