4.7 CpuResources

Use this Knowledge Script to monitor CPU resource consumption for users. This Knowledge Script also monitors the number of active processes, the number of threads, the number of context switches per second, and the number of interrupts per second. If any metric exceeds one of the thresholds you set, AppManager raises an event.

4.7.1 Resource Object

CPU folder

4.7.2 Default Schedule

The default interval for this script is Every 5 minutes.

4.7.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Event settings

Event if user CPU time (%) exceeds threshold?

Select Yes to raise an event if user CPU time usage exceeds the threshold in the interval. The default is Yes.

Event severity when user CPU time exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when the user CPU time exceeds the threshold. The default is 5.

Event if number of processes exceeds threshold?

Select Yes to raise an event if the number of processes exceeds the threshold in the interval. The default is Yes.

Event severity when number of processes exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when the number of processes exceeds the threshold. The default is 5.

Event if number of threads exceeds threshold?

Select Yes to raise an event if the number of threads exceeds the threshold in the interval. The default is Yes.

Event severity when number of threads exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when the number of threads exceeds the threshold. The default is 5.

Event if context switch rate exceeds threshold?

Select Yes to raise an event if the context switches per second exceeds the threshold in the interval. The default is Yes.

Event severity when context switch rate exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when the number of context switches per second exceeds the threshold. The default is 5.

Event if interrupt rate exceeds threshold?

Select Yes to raise an event if the number of interrupts per second exceeds the threshold in the interval. The default is Yes.

Event severity when interrupt rate exceeds threshold

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when the number of interrupts per second exceeds the threshold. The default is 5.

Event severity for miscellaneous runtime errors

Set the event severity level, from 1 to 40, to indicate the importance of the event reported when a runtime error occurs. The default is 8.

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

Threshold -- Maximum CPU usage (%) for user time

Enter a threshold for the maximum CPU usage percentage in user mode. The default is 80%.

Threshold -- Maximum number of processes

Enter a threshold for the maximum number of processes that can be running simultaneously. The default is 100 processes.

Threshold -- Maximum number of threads

Enter a threshold for the maximum number of threads that can be running simultaneously. The default is 400 threads.

Threshold -- Maximum context switch rate

Enter a threshold for the maximum number of context switches per second. The default is 100 switches per second.

Threshold -- Maximum interrupt rate

Enter a threshold for the maximum number of interrupts per second. The default is 500 interrupts per second.

Collect data settings

Collect data for user CPU time?

Select Yes to collect the percentage of user CPU time usage during the interval so that the data can be used for graphs and reports. By default, data is not collected.

Collect data for number of processes?

Select Yes to return the number of active processes for the interval so that the data can be used for graphs and reports. By default, data is not collected

Collect data for number of threads?

Select Yes to return the number of threads for the interval so that the data can be used for graphs and reports. By default, data is not collected.

Collect data for context switches per second?

Select Yes to return the number of context switches per second so that the data can be used for graphs and reports. By default, data is not collected.

Collect data for interrupts per second?

Select Yes to return the number of interrupts per second so that the data can be used for graphs and reports. By default, data is not collected.