Werk #15894: State and Count of Processes: Calculate process creation time consistently

Component Checks & agents
Title State and Count of Processes: Calculate process creation time consistently
Date Jun 5, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0p30 2.2.0p3 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The creation time of a process, as displayed by the "State and Count of Processes" service is calculated by taking the difference between the current time and the time elapsed since the process was started. Previously, this used the time the check was performed at as the current time, leading to different creation times if different services were created for the same process. Now the time the agent section was parsed is used instead.

Note that this will still lead to incorrect creation times if it takes too long to fetch the agent output.

To the list of all Werks