Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

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

Execute an External Visual Basic Script for SAM

Table of contents
No headers

Updated: 12-1-2016

In some situations, you may want to execute a Visual Basic (VB) script when a network event occurs to perform a specific action.

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 VB Script option, then click Configure Action.
  3. Under Execute an External VB Script settings:
    1. Select a VB Script Interpreter from the drop down list.
    2. Enter the Network path to the external VB Script in the field provided.
      For example: Use c:\test.vbs, where c:\ is the disk on your main Orion poller and test.vbs is your external VB Script to be executed.
    3. 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 VB script runs.

 
Last modified
13:50, 17 Mar 2017

Tags

Classifications

Public