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

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

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