Submit a ticketCall us

Don’t fall victim to a ransomware attack
Backups are helpful, but sometimes that’s not enough to protect your business against ransomware. At our live webcast we will discuss how to protect against ransomware attacks with SolarWinds® Patch Manager and how to leverage log data to detect ransomware. Register now for our live webcast.

Home > Success Center > Server & Application Monitor (SAM) > SAM 6.4 Administrator Guide > Alert Actions for SAM > Execute an External Program for SAM

Execute an External Program for SAM

Table of contents
No headers

Updated: 12-1-2016

There are several circumstances where you may want to execute a program when a specific network event occurs. For example, you may want to run a custom script to reboot your SQL servers.

External programs selected for this action must be executable using a batch file called from the command line. Programs executed this way run in the background. However, you can set the SolarWinds Alerting Engine Service to Interact with Desktop.

SolarWinds recommends that scripts and batch files be placed on the root of c:\ to simplify the path for the batch file.

  1. When editing or adding an alert, click Add Action in the Trigger or Reset Action section of the Alert Wizard.
  2. Select the Execute an External Program option, then click Configure Action.
  3. Under Execute an External Program settings:
    1. Enter the Network path to external program in the field provided.
      For example: Use c:\test.bat, where c:\ is the disk on your main poller and test.bat is your external program to be executed.
    2. Select either Define User or No User Defined for Optional Windows Authentication
  4. Schedule the action by selecting Time of Day > Use special Time of Day schedule for this action . This schedule only applies to the alert action you are editing.

    This is often used to prevent an action from occurring during specific windows.

  5. Select how frequently this action occurs for each triggered alert in Execution Settings.

  6. Click Add Action.

The action is added to the trigger or reset action list, and you can test the action using the Simulate button. When the trigger or reset conditions of the alert are met, the external program runs.

 
Last modified
13:50, 17 Mar 2017

Tags

Classifications

Public