4.63 TopCpuProcs

Use this Knowledge Script to monitor total CPU resources used by all processes and which processes consume the most CPU resources. This script raises an event if the percentage of CPU usage exceeds the threshold you specify. In addition, this script generates a datastream for processor usage.

4.63.1 Resource Object

CPU folder

4.63.2 Default Schedule

The default schedule for this script is Every 5 minutes.

4.63.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Event Notification

Create event if processor utilization is over the threshold?

Set to Yes to raise an event if the percentage of CPU time used exceeds the threshold you specify. The default is Yes.

Severity - Processor utilization over the threshold

Set the event severity level, from 1 to 40, to indicate the importance of an event in which CPU usage exceeds the threshold. The default is 5 (red event indicator).

Number of processes to include in detail message

Specify the number of top processes to display in the detail message (event or data). Enter 0 to display all processes. The default is 10.

NOTE:Limit the number of processes included in the detail message to the top five to ten processes. In most cases, including all processes increases the size of the detail message without providing much more useful information. Typically, the top few processes are the most significant and the most userful for troubleshooting purposes.

Severity - Job failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the TopCpuProcs job fails unexpectedly. The default is 5 (red event indicator).

Data Collection

Collect processor utilization data?

Select Yes to collect data for charts and reports. If enabled, data collection returns the process name, ID, and utilization percentage (%) for the number of processes you set in Number of processes to include in detail message. The default is unselected.

NOTE:If the value you set in Number of processes to include in detail message is greater than the number of processes running on the computer, the event detail message only contains the list of running processes; AppManager does not include blank lines to represent the non-running processes.

Monitoring

Threshold - Total processor utilization

Specify the maximum percentage of CPU resources that can be in use for all processes before an event is raised. The default is 85%.