Adding and editing an Active Script Active Monitor
The Active Script monitor lets you write either VBScript or JScript code to perform specific customized checks on a device. If the script returns an error code, the monitor is considered down. A variety of Active Script resources are available on the Active Scripts Resource page.
: Ipswitch does not support any custom scripts you create; only the ability to use them in the Active Script monitor. For more information, see Extending WhatsUp Gold with scripting.
To add a new Active Script active monitor:
- From the WhatsUp Gold web interface, go to . The Monitor Library dialog appears.
- Click the tab. The Active Monitor list appears.
- Click . The Select Active Monitor Type dialog appears.
- Select , then click . The New Active Script Monitor dialog appears.
- Enter or select the appropriate information:
- . Enter a unique name for the active monitor. This name displays in the Active Monitor Library.
- . Enter additional information about the monitor. This description displays next to the monitor in the Active Monitor Library.
- . Enter the length of time WhatsUp Gold attempts to connect to the selected device. When the time you enter is exceeded without connecting, a timeout occurs and WhatsUp Gold stops trying to connect to the SMTP server. This is considered a failed connection.
- . Select either VBScript or JScript.
- Select this option to have the monitor appear in the Active Monitor list on the Device Properties dialog. WhatsUp Gold adds the monitor type to the device during a rescan, which is launched using Rescan on the Device Properties dialog, if the protocol or service is active on the device.
- . Select this option to use the Active Script Monitor execution model that was available prior to the WhatsUp Gold 16.2 SP3 release. This option may be more susceptible to Active Script monitor script errors; however, it allows you to use the
Context.GetDB
context object in scripts for direct interaction with the WhatsUp Gold database. - . Select this option to use the Active Script Monitor execution model that became available in the WhatsUp Gold 16.2 SP3 release. This option may be less susceptible to Active Script monitor script errors, therefore providing more protection and stability for the WhatsUp Gold poller engine (nmservice.exe); however, it DOES NOT allow you to use the
Context.GetDB
context object in scripts for direct interaction with the WhatsUp Gold database. - . Enter your monitor code in this box.
- Click to save changes.
- After configuring an active monitor in the Active Monitor Library, add the monitor to devices.
To edit an existing Active Script active monitor:
- From the WhatsUp Gold web interface, go to . The Monitor Library dialog appears.
- Click the tab. The Active Monitor list appears.
- Select the monitor you would like to edit, then click . The Edit Active Script Monitor dialog appears.
- Enter or select the appropriate information:
- . Enter a unique name for the active monitor. This name displays in the Active Monitor Library.
- . Enter additional information about the monitor. This description displays next to the monitor in the Active Monitor Library.
- . Enter the length of time WhatsUp Gold attempts to connect to the selected device. When the time you enter is exceeded without connecting, a timeout occurs and WhatsUp Gold stops trying to connect to the SMTP server. This is considered a failed connection.
- . Select either VBScript or JScript.
- Select this option to have the monitor appear in the Active Monitor list on the Device Properties dialog. WhatsUp Gold adds the monitor type to the device during a rescan, which is launched using Rescan on the Device Properties dialog, if the protocol or service is active on the device.
- . Enter your monitor code in this box.
- Click to save changes.