4.8 CpuUtil

Use this Knowledge Script to monitor CPU utilization and queue length. CPU utilization is measured in percentage. This Knowledge Script collects utilization data based on the following parameters:

  • User: Percentage of CPU utilized in user mode

  • System: Percentage of CPU utilized in kernel mode

  • Wait: Percentage of CPU utilized for I/O operations

  • Idle: Percentage of CPU in idle mode

You can set thresholds for each of these parameters. If the CPU utilization exceeds any threshold, an event is generated.

If you are using Logical Partitions (LPAR) on AIX, use the AIXLparUtil Knowledge Script.

4.8.1 Resource Object

CPU icon

4.8.2 Default Schedule

The default interval for this script is Every 5 minutes.

4.8.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Monitor overall CPU load? (y/n)

Set to y to monitor the total load on the CPU. If you set the value to n, only individual CPUs are monitored By default, CPU load is monitored. The default is y.

Number of seconds between samples

Enter the data collection interval (in seconds), from 2 to 30, for the sar utility. The default is 5 seconds.

Number of times sar should iterate before reporting an average value

Enter the iteration count, from 1 to 100, for the sar utility. The default is 1 iteration.

Event severity level

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

Data Collection Options

Collect data for %User CPU state? (y/n)

Set to y to collect data for the percentage of: CPU utilized in user mode. The default is n.

Collect data for %System CPU state? (y/n)

Set to y to collect data for the percentage of CPU utilized in kernel/system mode. The default is n.

Collect data for %Wait CPU state? (y/n)

Set to y to collect data for the percentage of CPU utilized in I/O mode. The default is n.

Collect data for %Idle CPU state? (y/n)

Set to y to collect data for the percentage of CPU in the idle mode. The default is n.

Collect data for Total CPU utilization? (y/n)

Set to y to collect data for the total percentage of CPU utilized. This includes utilization data when the CPU is in user and kernel/system modes. The default is y.

Collect data on CPU Queue Length? (y/n)

Set to y to collect data for the number of processes in the CPU run queue. The default is n.

Thresholds and Eventing

Event if CPU usage exceeds thresholds? (y/n)

Set to y to raise an event when the CPU usage exceeds the thresholds you have specified.The default is y.

Threshold -- Maximum %User CPU state. -1 disables

Enter the threshold value, from 1 to 100, for the maximum percentage of CPU utilization in user mode. AppManager raises an event if the CPU utilization exceeds this threshold. Enter -1 to disable the threshold. The default is 90%.

Threshold -- Maximum %System CPU state. -1 disables

Enter the threshold value, from 1 to 100, for the maximum percentage of CPU utilization in the kernel/system mode. AppManager raises an event if the CPU utilization exceeds this threshold. Enter -1 to disable the threshold. The default is 90%.

Threshold -- Maximum %Wait CPU state. -1 disables

Enter the threshold value, from 1 to 100, for the maximum percentage of CPU utilization in the I/O wait mode. AppManager raises an event if the CPU utilization exceeds this threshold. Enter -1 to disable the threshold. The default is 90%.

Threshold -- Maximum %Idle CPU state. -1 disables

Enter the threshold value, from 1 to 100, for the maximum percentage of CPU in the idle mode. AppManager raises an event if the CPU utilization exceeds this threshold. Enter -1 to disable the threshold. The default is 10%.

Threshold -- Maximum Total CPU utilization. -1 disables

Enter the threshold value, from 1 to 100, for the maximum percentage of total CPU utilization (in user and kernel/system modes). AppManager raises an event if the CPU utilization exceeds this threshold. The default is 90%.

Threshold -- Maximum number of processes in the queue.

Enter the maximum number of processes that should be allowed to be queued. If the number of processes in queue exceeds the threshold, AppManager raises an event. The default is 10.

Event if queue length is over threshold? (y/n)

Set to y to raise an event when the queue length exceeds the threshold you have specified. The default is n.

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.

Enable debugging? (y/n)

Set to y to enable debugging. The default is n.