Add MongoDB as archive mode in the Event Console

Hi,

This post also is mine. I narrowed the problem to this file:
File “/omd/sites/tncoper/lib/python/cmk/ec/history.py”, line 130, in _connect_mongodb

The problem appear in try construction.

try:
from pymongo.connection import Connection
from pymongo import DESCENDING
from pymongo.errors import OperationFailure
import datetime
except ImportError:
Connection = None

It looks like the script cannot import Connection. I replaced it with MongoClient and it is the same.

Does anyone can help with some ideas?