Werk #22127: Fix crash in SLA views for services without availability data
| Component | User interface | ||||||
| Title | Fix crash in SLA views for services without availability data | ||||||
| Date | Aug 17, 2026 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
Opening a view with an SLA column could fail with a crash report showing a
KeyError that names a site and a host, for example
KeyError: ('mysite', 'myhost').
This happened when one of the services shown in the view had no state history at all within the SLA time range -- for example a service created after the start of the period, or one whose host was not monitored during it. The SLA computation expected availability data to exist for every service in the view.
Such a service is now treated like any other period without data: the SLA requirements do not apply to it, and the other services in the view are evaluated as before.