Active Script (Active)
- Last Updated: November 17, 2026
- 2 minute read
- WhatsUp Gold
- Version 2026.1
The Active Script monitor allows you write VBScript, JScript, PowerShell, or Python, code to perform specific customized checks on a device. If the script returns an error code, the monitor is considered Down.
Provide a unique name and description for the monitor, then configure the following:
- Timeout. Enter the length of time attempts to connect to the selected device. When the specified time is exceeded without connecting, a timeout occurs and stops trying to connect to the server. This is considered a failed connection.
- Use in rescan. Enable this option to have the monitor appear in Device Properties. If enabled, clicking Rescan Device from the device management actions menu within the Device Properties interface adds the monitor to the selected device if the applicable protocol or service is active on that device.
- Execution Model. Use the drop-down control provided to indicate if the script will utilize a direct data access or isolated process execution model.
- Script text. Select VBScript, JScript, or Python then enter the actual script code for the monitor to run.
Please note, the script is able to gain access to the device attributes using special methods on the Context object. These methods are:
- GetAttributeCount
- GetAttributeName
- ReadAttributeByName
- AddAttribute
- UpdateAttributeValue
- RemoveAttribute
Important: This monitor no longer needs to run on
the local poller. If the Execution Model is set to direct data access, AND the
monitor is running on a remote poller, AND the script contains the text for
context.getdb, it will log a VERBOSE message in the NmPoller log of the
remote system.
Note: For active monitors assigned to a device where timeout and/or retries can be
configured, these settings can be modified at the device level without changing the
monitor configuration in the monitors library.