Werk #17825: Prevent availability view crash due to division by 0

Component User interface
Title Prevent availability view crash due to division by 0
Date Mar 19, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p30
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

With long time periods (e.g. last year) and recently added hosts, the availability view crashed when the "Include unmonitored time" option was disabled.

This was due to the fact that the monitored time of the host tended to be 0 in this constellation.

In this case the specified time instead of the span is now used to calculate the uptime in percent.

To the list of all Werks