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
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk-Version 2.3.0 2.4.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

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