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

Komponente Metrics system
Titel Custom graphs: Fix crash in case of missing host/service/metric
Datum 24.04.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
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.

Zur Liste aller Werks