Werk #13494: mongodb_counters: Fix "ValueError: too many values to unpack (expected 3)"
Komponente | Checks & agents |
Titel | mongodb_counters: Fix "ValueError: too many values to unpack (expected 3)" |
Datum | 15.11.2021 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p28 2.0.0p16 2.1.0b1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
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.