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 |
|
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.