Werk #18327: Fix handling of levels with infinity values while rendering horizontal rules within graphs

Component User interface
Title Fix handling of levels with infinity values while rendering horizontal rules within graphs
Date Jan 12, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.6.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p20
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

If the warning or critical value (levels) of a graph has the value inf or -inf then the following error message is shown:

Cannot calculate graph recipes
Traceback (most recent call last):
  ...
  File "/omd/sites/sideview/lib/python3/cmk/gui/graphing/_formatter.py", line 85, in _apply_precision
    value_floor = math.floor(value)
                  ^^^^^^^^^^^^^^^^^
OverflowError: cannot convert float infinity to integer

This has been fixed now and the value will not be rendered.

To the list of all Werks