Network Management
Create a reboot Windows server alert action
This article describes how to create an alert action to reboot the Windows server if the service status is down.
First published date
Last published date
Overview
Product section
Resolution
- Go to Alert Trigger Action and locate the Execute an External VB Script option.
- Create a script to execute a system reboot when the alert triggers if the service status is down.
See the How to force restart a Windows box using VBScript? (© 2018 Stack Exchange Inc., available at https://stackoverflow.com, obtained on August 27, 2018.) article for an example of a VBScript.
Please note 2 key points with executing scripts via alert actions:
-Solarwinds does not support the actual scripts
-The script will run on your primary orion server so please plan to code your script accordingly. (If you need to reboot a target node then you'll have to adjust your script so that when it runs on your orion server - it does what you expect it to do to your remote node/server)
Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment. You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.