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 |
|
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.