Werk #13494: mongodb_counters: Fix "ValueError: too many values to unpack (expected 3)"

Component Checks & agents
Title mongodb_counters: Fix "ValueError: too many values to unpack (expected 3)"
Date Nov 15, 2021
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.1.0i1 2.0.0p16 1.6.0p28
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

In certain cases, the check plugin mongodb_counters crashed with "ValueError: too many values to unpack (expected 3)".

The reason for this crash is that depending on the version, db.serverStatus().opcounters can contain a counter named "deprecated", which does not follow the syntax of the other counters. This counter is now skipped.

To the list of all Werks