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 Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.6.0p28 2.0.0p16 2.1.0b1 |
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.