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
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p12 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p29 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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