CPU utilization formula

book

Article ID: 212038

calendar_today

Updated On:

Products

DX Infrastructure Management

Issue/Introduction

How can I manually checking the CPU Utilization values using individual values in the formula?  The formula provided in "Run vendor certifcation" is:

Utilization =(isdef(ssCpuRawNice) && ssCpuRawNice != null)?100-((100*ssCpuRawIdle)/(ssCpuRawIdle + ssCpuRawKernel + ssCpuRawNice + ssCpuRawSystem + ssCpuRawUser)) :100-((100*ssCpuRawIdle)/(ssCpuRawIdle + ssCpuRawKernel + ssCpuRawSystem + ssCpuRawUser)) 

Each oid in the formula has multiple values listed.  Which should I use?

Environment

Release : 20.3

Component : UIM - SNMPCOLLECTOR

Resolution

For each individual oid, you may see 3 values: Current, Last, and Delta.  Be sure that you use all Current or Last in your calculations.

For example:

INDIVIDUAL SNMP OID RESPONSES (NAME :: OID = Current Value :: Last Value)
ssCpuRawUser :: 1.3.6.1.4.1.2021.11.50.0 = 1031497589 :: 1031496431 = 1158
ssCpuRawNice :: 1.3.6.1.4.1.2021.11.51.0 = 1017 :: 1017 = 0
ssCpuRawSystem :: 1.3.6.1.4.1.2021.11.52.0 = 2510080882 :: 2510080771 = 111
ssCpuRawIdle :: 1.3.6.1.4.1.2021.11.53.0 = 106238295 :: 106219620 = 18675
ssCpuRawKernel :: 1.3.6.1.4.1.2021.11.55.0 = 0 :: 0

After the OID, you see the following format:

OID = CurrentValue :: LastValue = Delta

Using the Delta value will not return a valid calculation.