4.5 CpuByProcess

Use this Knowledge Script to monitor whether specific processes have exceeded CPU thresholds. The Knowledge Script monitors CPU usage for each named process, as well as the total CPU usage for all named processes.

To determine CPU usage, the Knowledge Script checks the percentage of processor time that the threads for each process used to execute instructions. If a process is not found, the Knowledge Script raises an event and the event detail message indicates which process was not found.

4.5.1 Resource Object

UNIX CPU folder

4.5.2 Default Schedule

The default interval for this script is Every 30 minutes.

4.5.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Comma-separated list of process names or regular expressions

Enter one or more process names or regular expressions, separated by commas and no spaces. For example: qtest.d. The default is proc1,proc2.

Event Settings

Event severity level

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 8.

Create event for each specified process?

Select Yes to create events for each specified process. The default is Yes.

Create event for the sum of all processes?

Select Yes to create events for the sum of all processes. The default is Yes.

Event severity for internal failure

Set the event severity level, from 1 to 40, to indicate the importance of an event in which this job experienced an internal error. The default is 5.

Threshold Settings

Maximum CPU usage (%) for each specified process

Specify a percentage for the maximum CPU usage percentage for each process. The default is 60 percent.

Maximum CPU usage (%) for all specified processes together

Specify a maximum CPU usage threshold percentage for all specified processes you are monitoring. The default is 95.

Collect Data Settings

Collect data…

Select Yes to collect data for charts, graphs, and reports for:

  • for each specified process?

  • on the sum of all processes

The default is unselected.

Enable debugging?

Select Yes. The default is unselected.

NOTE:This Knowledge Script does not detect invalid process names. If you enter an invalid process name, the Knowledge Script assumes that the process is not running, and reports zero as the CPU result.