Active Script (Performance)

The Active Script Performance monitor enables you to write VBScript and JScript to easily poll one or more SNMP or WMI values, perform math or other operations on those values, and graph a single output value. You should only use the Active Script Performance Monitor when you need to perform calculations on the polled values. Keep in mind that although you can poll multiple values using the feature, only one value will be stored to the database: the outcome of your scripted calculation.

The Active Script performance monitor requires one or more of the following credentials:

Configure the Active Script performance monitor using the following boxes:

To configure an SNMP Active Script performance monitor:

  1. Click Add from the Add Active Script Performance Monitor dialog to add a new variable to the Reference variables field. The Add New Reference Variable dialog appears.
  2. Enter the appropriate information:
    • Variable name. Enter a unique name for the variable.
    • Description. (Optional) Enter a short description for the variable.
  3. Select SNMP from the Object type list.
  4. Enter the Timeout and Retries count for connection to the device. These are optional field entries.
  5. Click browse (...) next to Instance. The MIB Browser dialog appears.
  6. Enter the name or IP address of the computer you are you are trying to connect to in the Select counters from computer box. You can click browse (...) to select a device from a list.
  7. Select the SNMP Credential used to connect to the device. You can also click browse (...) to access the Credentials Library to create a new credential.
  8. Adjust the length of time and the number of retries for the computer you are trying to connect to in the Timeout and Number of retries boxes.
  9. Click OK. The SNMP MIB Browser appears.
  10. Use the navigation tree in the left panel to select the specific MIB you want to monitor. You can view more information about the property/value at the bottom of the dialog.
  11. Click OK to add the OID to the Performance counter and Instance fields in the Add New Reference Variable dialog.
  12. Verify the configuration and click OK to add the variable to the Reference variables list in the Add Active Script Performance Monitor dialog.
  13. Write or paste your monitor code in the Script text field.
  14. Click OK to save changes.

To configure a WMI Active Script performance monitor:

  1. Click Add from the Add Active Script Performance Monitor dialog to add a new variable to the Reference variables field. The Add New Reference Variable dialog appears.
  2. Enter the appropriate information:
    • Variable name. Enter a unique name for the variable.
    • Description. (Optional) Enter a short description for the variable.
  3. Select WMI from the Object Type list.
  4. Click browse (...) next to Instance. The Performance Counters dialog appears.
  5. Enter the Name or IP address of the computer you are trying to connect. You can click browse (...) to select a device from a list.
  6. Select the Windows Credential used to connect to the device. You can also click browse (...) to access the Credentials Library to create a new credential.
  7. Click OK to connect to the computer.
  8. Use the performance counter tree to navigate to the Performance Counter you want to monitor.
  9. Select the specific Performance Instance you want to monitor.
  10. Click OK to add the variable to the Performance counter field in the Add New Reference Variable dialog.
  11. Click OK to add the variable to the Reference variable list on the Add Active Script Performance Monitor dialog.
  12. Enter your monitor code into the Script text field.
  13. Click OK to save changes.

Keep In Mind

Important: The first time that you poll a WMI reference variable that requires two polls in order to calculate an average (such as "Processor\% Processor Time"), it returns "Null."

Warning: Modifying the configuration of any of the VoIP Active Script performance monitors is not recommended; doing so prevents the VoIP setup utility from detecting pre-existing VoIP configuration.

See Also

Performance Monitors

APC UPS (Performance)

CPU Utilization (Performance)

PowerShell Scripting

Disk Utilization (Performance)

Interface Utilization

Printer (Performance)

Hyper-V Virtual Machine Disk Activity

JMX (Performance)

Memory Utilization (Performance)

Ping Latency and Availability

SNMP (Performance)

SQL Query (Performance)

SSH (Performance)

VMware Datastore IOPS

Windows Performance Counter

Configuring WMI Formatted Counter monitors

WMI Performance Monitor

Hyper-V Host Event Log Monitor

Hyper-V Host Virtual Machines Monitor