taipan
(Georgi)
June 25, 2020, 8:37am
1
Hello,
I am looking for someone who enabled MongoDB as an archive mode for the Event Console.
By default the Event Console is set to keep logs in a file but also has hidden functionality which allows to keep them in MongoDB.
I will be very grateful if someone can help me.
Best Regards,
Georgi
ChristianM
(Christian Michaelski)
June 25, 2020, 11:06am
2
Hi,
please look at thios article:
Hello,
I hit problem with MongoDB configuration.
I am using Check Mk Raw 1.6.0p9. I am trying to add MongoDB as an archive type.
I am using Centos8.
Till now:
I installed MongoDB - version 4.2
1.1 Installation is checked, the service is working
1.2 systemctl; - mongod.service loaded active running MongoDB Database Server
1.3 tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 2049/mongod
I added the html code in - /omd/sites/tncoper/lib/python/cmk/gui…
taipan
(Georgi)
June 25, 2020, 1:10pm
3
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?
ChristianM
(Christian Michaelski)
June 25, 2020, 1:21pm
4
You can look in mkeventd code. There are some hints about mongo connections.
system
(system)
Closed
July 25, 2020, 11:24pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.