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

Werk #14765: mk_mongodb.py: primary host is listed under active secondaries

Component Checks & agents
Title mk_mongodb.py: primary host is listed under active secondaries
Date Aug 30, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Community, Checkmk Pro, Checkmk Ultimate, Checkmk Ultimate MT
2.1.0p12 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT
2.0.0p29 Checkmk Community, Checkmk Pro, Checkmk Ultimate MT

The plugin "mk_mongodb.py" provides the section "mongodb_replica", which contains information on the MongoDB primary, secondaries, and arbiters. The primary host was listed as both primary and active secondary. This is also shown in the corresponding check, "mongodb_replica". This has been fixed.

The fix requires that the agent plugin, "mk_mongodb.py", is updated on the relevant hosts.

To the list of all Werks