Learn more about the latest product updates at the Checkmk Conference #12 – live from June 16-17! Watch here

Werk #20098: mk_sap: Fix ValueError when reading the state file

Component Checks & agents
Title mk_sap: Fix ValueError when reading the state file
Date Jun 11, 2026
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
3.0.0b1
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT
2.5.0p7
Not yet released
Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Cloud, Checkmk Ultimate MT

Previously, the mk_sap agent plugin crashed on every run once it had processed at least one CCMS alert and written its state file:

ValueError: malformed node or string: <_ast.Call object at 0x7fcd87336160>

The plugin stored alert timestamps in a format it could not read back on the next run. Deleting the state file only helped until the next alert was processed.

The state file format is now readable by the plugin again. Existing state files are migrated automatically on the first run after the update, so no manual action is required. An unreadable or corrupted state file no longer crashes the plugin; it starts with a fresh state instead, which may report already-seen alerts once more.

To the list of all Werks