This help page is for version 3.5. The latest available help is for version 5.1.
The Execute Script Monitor allows you to write your own custom scripts in the VBScript language to check anything that your script can access. This monitor makes use of the VBScript engine that is already installed on nearly all Windows computers.
The script window is where you enter your VBScript. The script can do anything that can be done in VBScript (including creating external ActiveX/COM components) with all the standard restrictions.
The script has two global variables: SendNotication and Details. The script signals to the monitoring service that the configured actions should be fired by setting SendNotification = True. The Details variable can be set to any text, and that text will get passed to all configured actions.
Pressing the Test Script button will cause the script to be launched and run from the Console, and will report on the final state of the SendNotification variable. Note that the script will run as the currently logged on user when this button is clicked, but while running from within the monitoring service it will execute as the "run as" user for the service. This may or may not have an effect on the resources that the script can access.