I want to monitor more details about a MongoDB Cluster, including the replset size and also about the lag between primaries and secondaries. I found https://checkmk.de/cms_check_mongodb_replication_info.html and https://checkmk.de/cms_check_mongodb_replica_set.html which seem to provide the right information if I look at the source.
But for me it’s entirely unclear how to install and enable these plugins. I have tried to put it into the plugins directory of the agent, but nothing happens. Beside that, how do these plugins get their information from MongoDB?
I have already seen mk_mongodb, but this plugin is not an option as it iterates through the databases and collections, since the MongoDB Cluster contains roughly 3k databases, each with many collections this would kill our CheckMK