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

Werk #15334: FIX mongodb_replica_set: compatibility with pymongo 3

Component Checks & agents
Title FIX mongodb_replica_set: compatibility with pymongo 3
Date May 15, 2024
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.4.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.3.0p3 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.2.0p27 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT

Werk #16174 introduced a regression: If the checkmk agent plugin is running with pymongo version 3 the replication lag time stamp is interpreted as seconds, but its actually milliseconds. This results in errors like ValueError (year 56319 is out of range).

The check is now compatible with pymongo version 3 and 4.

To the list of all Werks