Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

Werk #22579: job: no crash on negative real time

Component Checks & agents
Title job: no crash on negative real time
Date Oct 6, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p16 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.4.0p39 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

If a job monitored via mk-job reported a negative real time, the Job service crashed with ValueError: Cannot render negative timespan. This happens when the system clock is set back while the job is running, for example by a job that runs chronyc makestep.

The service now goes to WARN and reports the negative value with a hint to check the system time. The exit code and job age are evaluated as before.

To the list of all Werks