Werk #16803: Custom graphs: Fix crash in case of missing host/service/metric

Component Metrics system
Title Custom graphs: Fix crash in case of missing host/service/metric
Date Apr 24, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Custom graphs can contain elements whose host or service is non-existant. This happens for example when a host is removed from the monitoring after one of its metrics has been added to a custom graph. In such cases, no graph was rendered. Instead, the Checkmk UI displayed the message "Cannot calculate graph recipes" and showed a traceback.

As of this werk, the UI instead renders no lines for such elements and denotes them with "n/a" in the graph legend.

To the list of all Werks