Formula or command to find the average CPU

Document ID : KB000011858
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Here is the document for the metrics (QOS_LOAD_AVERAGE_1MIN, QOS_LOAD_AVERAGE_5MIN and QOS_LOAD_AVERAGE_15MIN) for CPU average. Please go through the section "Configure Advanced Monitoring Properties"

 

https://docops.ca.com/ca-unified-infrastructure-management-probes/en/alphabetical-probe-articles/cdm-cpu-disk-memory-performance-monitoring/cdm-im-configuration

Question:

How to calculate / fetch the average CPU data for CDM probe ?

Environment:
UIM: 8.31, 8.4 or later.OS: AIX, HP-UX, Linux and Solaris.
Answer:

Here is how the Average CPU information fetched from different Unix platforms.

AIX:

•The load data is found by running the command ”/usr/bin/uptime". Based on the data gathering interval either the 1, 5 or 15 minute average is used.

HP-UX:

•The load data is found using the system call pstat_getdynamic(). 

Linux:

•The load data is found by reading the file “/proc/loadavg”. Based on the data gathering interval either the 1, 5 or 15 minute average is used.

Solaris:

 

•The load data is found by running the command ”/usr/bin/uptime". Based on the data gathering interval either the 1, 5 or 15 minute average is used.

Additional Information:

https://docops.ca.com/ca-unified-infrastructure-management-probes/en/alphabetical-probe-articles/cdm-cpu-disk-memory-performance-monitoring/cdm-metrics