Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDb Zabbix Script do not work with SSL #30

Open
Genacvali opened this issue Jan 4, 2020 · 1 comment
Open

MongoDb Zabbix Script do not work with SSL #30

Genacvali opened this issue Jan 4, 2020 · 1 comment

Comments

@Genacvali
Copy link

Hello,

There is the problem related to zabbix-mongodb.py script.
Script is not working when the SSL configurations is enabled on MongoDB. As I realized there is no any SSL connection configurations in the script.
The MongoDB version is 4.0+ and 4.2+
The Zabbix vesrion is 4+
If you have any addtional question - please let me know

Thank you

@gsocgsoc
Copy link

@Genacvali

Just change the MongoClient URI and add "/?ssl=true" in zabbix-mongodb.py

self.__conn = MongoClient('mongodb://%s:%s/?ssl=true' % (self.mongo_host, self.mongo_port)) except errors.PyMongoError as py_mongo_error: print('Error in MongoDB connection: %s' % str(py_mongo_error)) else: try: self.__conn = MongoClient('mongodb://%s:%s@%s:%s/?ssl=true' % (self.mongo_user, self.mongo_password, self.mongo_host, self.mongo_port))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants