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 |
|
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.