Werk #20024: Fix Forecast graph report element crashing instead of showing a missing-context error
| Component | Reporting & availability | ||||||
| Title | Fix Forecast graph report element crashing instead of showing a missing-context error | ||||||
| Date | Aug 27, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Incompatible - Manual interaction might be required | ||||||
| Checkmk versions & editions |
|
A report containing a Forecast graph content element could fail to render with an unhandled
KeyError: 'host' or KeyError: 'service' instead of a clear error message, even though the
element's own "Context / search filters" section never offered host or service filters to
configure in the first place.
The Forecast graph element requires a specific host and service to know which metric to plot, but its default configuration incorrectly declared that it needed no context at all. This suppressed both the context filter fields in the element's editor and the validation that would otherwise ask for the missing information before rendering, so an underspecified element crashed instead of showing a helpful error.
Newly added Forecast graph elements now correctly offer host and service filters, and clearly report if either is still missing when the report is generated, instead of crashing.
Already saved reports containing a Forecast graph element without a host or service configured are not affected by this fix. To resolve them, delete the existing element and add a new one, or configure the missing host/service filter on it directly.