Free on-demand webinars: Learn how to set up, configure, and get more out of Checkmk – Pick your webinar

Werk #20228: Update fails if a site ID is a Python keyword

Component Telemetry
Title Update fails if a site ID is a Python keyword
Date Nov 24, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p23
Not yet released
Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

If a site ID was a Python keyword, for example global, the update to this version failed in the step "OTel collector configuration" with ValueError: 'global' is not a valid, non-reserved Python identifier. This also happened on sites without any OpenTelemetry collector configuration. The receiver and Prometheus scrape configuration pages of the OpenTelemetry collector failed with the same error.

The update now succeeds for such sites, and they can be selected in the OpenTelemetry collector configuration like any other site. On sites without OpenTelemetry collector configuration, the update also no longer creates empty configuration files.

To the list of all Werks