Werk #14549: mongodb_collections, mongodb_replica_set: Fix date parsing error

Component Checks & agents
Title mongodb_collections, mongodb_replica_set: Fix date parsing error
Date Aug 3, 2022
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p10 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
2.0.0p28 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

Depending on the pymongo version on the host system, the two check plugins mentioned above crashed with

TypeError: unsupported operand type(s) for /: 'str' and 'float'
TypeError: unsupported operand type(s) for -: 'str' and 'str'

To the list of all Werks