Explore the latest product updates and best practices at our hybrid Checkmk Conference #12 from June 16-18, 2026 – Register here

Werk #17044: gcp_status: Fix KeyError: me-central1

Component Checks & agents
Title gcp_status: Fix KeyError: me-central1
Date Jan 29, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.4.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.3.0p26 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

This change affects users which have configured the rule 'Google Cloud Platform (GCP) Status'. Previously, Checkmk did not handle incidents correctly, which had set me-central1 as an associated location. This was the corresponding traceback:

  File "/omd/sites/mon_home/lib/python3/cmk/plugins/gcp/agent_based/gcp_status.py", line 72, in parse
    data.setdefault(constants.RegionMap[location.id_], []).append(incident)
KeyError: 'me-central1'

With this werk, the crash is fixed.

To the list of all Werks