Windows Service Automation
An IT automation tool for the Windows services running in your server. It helps to automate the start and stop of a service to ensure its continued functioning.
Use Case: Restart a Windows Service
Consider an IIS application being monitored by our Server Monitoring solution. Unexpectedly, the service becomes unresponsive. On analyzing, it is found that the memory usage of one of the sites exceeds 90%.
Problem Statement:
This slows down the application. Customers have difficulty in accessing the various sections of the app.
Solution:
You can have a Windows Service automation configured to restart the service when the memory exceeds 90%. This can then be associated to the server monitor or the individual service.
Add Automation
Supported from Windows agent 18.4.0 version and above.
- Log in to Site24x7 and go to Admin > IT Automation Templates (+). You can also navigate via Server > IT Automation Templates (+).
- Select the Type of Automation as Windows Service.
- Provide a Display Name for identification purposes.
Eg: in the above use, name the automation as Service Stop. - Choose the Action to be Automated from the drop-down: Start, Stop, or Restart a service.
- Provide the complete Service Name on which the selected action should be automated.
Eg: Kaspersky Seamless Update Service. - Select the Hosts, Tags, or Monitor Groups on which you want the automation to be executed. You can select multiple hosts for parallel execution.
You can choose $LOCALHOST to execute the automation on any host where there is a threshold violation or monitor status change. This is applicable only for server monitors (agent-based). - Enter a Time-out period (in seconds) representing the maximum time period the agent has to wait for the command execution to complete. Post that, there will be a time-out error. This will be captured in the email report, if configured as Yes.
The Time-out is set at 15 seconds, by default. You can define a time-out between 1-90 seconds. - You can choose to Send an Email of the Automation Result to the user group(s) configured in the notification profile. By default, it is set to No. This email will contain parameters including the automation name, type of automation, incident reason, destination hosts, and more.
If you've multiple automations executed in one data collection, a consolidated email will be sent.
- Save the changes.
Notification Profile Settings:
Configure the following settings in the notification profile:
- Notify Down/Trouble status after executing IT automations associated to the monitor: When set to Yes, if your monitor still faces an outage even after executing the specified action, you'll be immediately alerted about the Down/Trouble status.
- Suppress IT Automation of dependent monitors: When the status of the dependent resource is Down, execution of the IT automation is not performed.
Test Automation
Once you add an automation, go to the IT Automation Summary page (Server > IT Automation Templates) and use the icon for a test run. Read more.
Click on the IT Automation Logs to view the list of automations executed by date.
Map Automation
Related Articles
- Get started with Site24x7 IT Automation
- Other automation tools supported: Server Script | Server Command | Invoke URL/REST API | Server Reboot | Thread Dump/Heap Dump | Mark as Maintenance | Hyper-V | IIS
- IT Automation Logs
- Service and process monitoring
- Server monitoring architecture
- Add a server: Windows | Linux
- Microsoft applications supported
- Configuration Profiles