Refactoring: Changed remaining check parameters starting with an 's' to the new rules...
[check_mk.git] / .werks / 925
blob1d948805e7f901ea8a644d577dca33612323498f
1 Title: ps: improved/fixed calculation of CPU utilization (linux)
2 Level: 2
3 Component: checks
4 Version: 1.2.5i3
5 Date: 1401100287
6 Class: feature
8 Previously, the CPU utilization value was taken from the output <tt>pcpu</tt> from
9 the ps command. This value didn't reflect the exact utilization since the last check
10 because its definition is <br>
11 <pre>
12 CPU usage is currently expressed as the percentage of time spent running
13 during the entire lifetime of a process.  This is not ideal, and it does not
14 conform to the standards that ps otherwise conforms to.  CPU usage is
15 unlikely to add up to exactly 100%.
16 </pre>
18 The evaluation of the <tt>pcpu</tt> field has been removed and got replaced
19 by the field <tt>cputime</tt>, which reflects the number of cpu seconds since program start.
20 With the <tt>cputime</tt> we are able to determine the correct value.
22 To utilize this new calculation method, you need to update the check_mk_agent on the target host.
23 The ps check itself is able to handle both formats, <tt>pcpu</tt> and <tt>cputime</tt>.
25 <br>
26 Note: This bug only applied to hosts using the linux check_mk_agent