We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #0925: ps: improved/fixed calculation of CPU utilization (linux)

ComponentChecks & Agents
Titleps: improved/fixed calculation of CPU utilization (linux)
Date2014-05-26 12:31:27
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i3
LevelProminent Change
ClassNew Feature
CompatibilityCompatible - no manual interaction needed

Previously, the CPU utilization value was taken from the output pcpu from the ps command. This value didn't reflect the exact utilization since the last check because its definition is

CPU usage is currently expressed as the percentage of time spent running

during the entire lifetime of a process.  This is not ideal, and it does not

conform to the standards that ps otherwise conforms to.  CPU usage is

unlikely to add up to exactly 100%.

The evaluation of the pcpu field has been removed and got replaced by the field cputime, which reflects the number of cpu seconds since program start. With the cputime we are able to determine the correct value.

To utilize this new calculation method, you need to update the check_mk_agent on the target host. The ps check itself is able to handle both formats, pcpu and cputime.

Note: This bug only applied to hosts using the linux check_mk_agent