Werk #14766: mk_mongodb.py: mongodb_instace section shows information from a different host

Component Checks & agents
Title mk_mongodb.py: mongodb_instace section shows information from a different host
Date Aug 31, 2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p29 2.1.0p12 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The agent plugin "mk_mongodb.py" creates the section "mongodb_instance". In some cases, this section contains information from a different host (i.e. replica) from within the MongoDB cluster than the one on which the agent plugin is located. The problem was that the connection settings did not specify to connect to the host directly. Therefore, requests were distributed across the cluster by MongoDB. This has been fixed. If this fix is required, the agent plugin must be redeployed to the hosts.

To the list of all Werks