Configure Active Script Performance
Monitor
For more information on the Active Script
Performance Monitor, please see About the Active Script Performance Monitor.
This script performance monitor has a context object that you can use to poll for
specific information about the device in context.
We have provided several code samples to help you in creating useful
Active Script Performance Monitors for your devices.
To configure an SNMP active script
performance monitor:
- On the Add Active Script Performance Monitor
dialog, enter a and
for the monitor as
it will appear in the Performance Monitor Library.
- Enter a number for the timeout (in minutes.)
And for the device-specific Active Script Performance Monitor,
enter a number (in minutes) for the Collection interval.
- Choose the type of script (JScript or
VBScript) you will be using to write the monitor from the Script
type drop down menu.
- Add a new variable to the Reference
Variables list by clicking .
: You can add up to 10 reference
variables.
Reference variables simplify your scripting
code and enable you to write scripts efficiently, without having to
grab a list of device properties, as with the Script Action and
Script Active Monitor. They take care of the underlying SNMP or WMI
mechanisms that you would normally have to deal with to access SNMP
or WMI counters on a remote device.
By using the Context.GetReferenceVariable
(variable name),
you only need to specify the name of a pre-defined variable.
WhatsUp Gold will use a device's credentials and connect to the
target device using SNMP or WMI to retrieve the requested
information. This information is stored in a variable that you can
use later in your script.
: The use of reference variables in
the Active Script Performance Monitor is optional. If you do use
them, you must use Context.GetReferenceVariable,
for reference
variables to be polled and their data graphed.
- On the Add reference variables dialog, enter
a name and description for the variable.
- Select the type of object (SNMP) from the
Object type drop-down menu.
- If needed, adjust the and count for connection to the
device.
- Click the button next to the Instance box. The SNMP MIB
Browser appears.
- Enter the share name or IP address of the
computer in which you are trying to connect.
- Enter the SNMP credential used to connect to
the device (or click the button to access the Credentials Library to create a
new credential.)
- If needed, adjust the and count for the computer in which you
are trying to connect.
- Click . The SNMP MIB Walker appears.
- 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.
- Click to add the OID to the and in the Add new reference
variable dialog.
- Verify the configuration and click
to add the variable to the
list on the
Add active script performance monitor dialog.
- Write or paste your monitor code in the
box.
- Click to save changes and add the monitor to
the Performance Monitor Library.
To configure a WMI active script
performance monitor:
- On the Add Active Script Performance Monitor
dialog, enter a and
for the monitor as
it will appear in the Performance Monitor Library.
- Enter a number for the timeout (in minutes.)
And for the device-specific Active Script Performance Monitor,
enter a number (in minutes) for the Collection interval.
- Choose the type of script (JScript or
VBScript) you will be using to write the monitor from the Script
type drop down menu.
- Add a new variable to the Reference
Variables list by clicking .
: You can add up to 10 reference
variables.
Reference variables simplify your scripting
code and enable you to write scripts efficiently, without having to
grab a list of device properties, as with the Script Action and
Script Active Monitor. They take care of the underlying SNMP or WMI
mechanisms that you would normally have to deal with to access SNMP
or WMI counters on a remote device.
By using the Context.GetReferenceVariable
(variable name),
you only need to specify the name of a pre-defined variable.
WhatsUp Gold will use a device's credentials and connect to the
target device using SNMP or WMI to retrieve the requested
information. This information is stored in a variable that you can
use later in your script.
: The use of reference variables in
the Active Script Performance Monitor is optional. If you do use
them, you must use Context.GetReferenceVariable,
for reference
variables to be polled and their data graphed.
- On the Add reference variables dialog, enter
a name and description for the variable.
- Select the type of object (WMI) from the
Object type drop-down menu.
- Click the button next to the Instance box.
- In the dialog that appears, enter the share
name or IP address of the computer in which you want to
connect.
- Enter the domain and user login for the
account on this computer. If a domain account is used, then the
expected user name is domain\user. If the device is on a workgroup,
there are two possible user names: workgroup name\user or machine
name\user.
- Enter a password for the login used above
and click to connect to the
computer.
- Use the Performance counter tree to navigate
to the performance counter you want to monitor.
- Once you select the performance counter,
select the specific instance you want to monitor.
- Click to add the variable to the list on the Add active
script performance monitor dialog.
- Write or paste your monitor code in the
box.
- Click to save changes and to add the monitor to
the Performance Monitor Library.
:
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 will return "Null."
Troubleshooting
Having problems with your WMI monitor returning
false negatives?