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 ssl not working #25

Open
Genacvali opened this issue Dec 5, 2019 · 1 comment
Open

MongoDB ssl not working #25

Genacvali opened this issue Dec 5, 2019 · 1 comment

Comments

@Genacvali
Copy link

Hello,

I've been testing you template on my zabbix for MongoDB
And I didn't quite understand how --ssl works with you scripts.
Here how I am testing

/mikoomi-mongodb-plugin-32.sh -D -h *****-p **** -z ***** -H 127.0.0.1 -P 10051 -u admin -x admin --ssl
mikoomi-mongodb-plugin-32.php: version 0.8
0

There are sone certificate files that is needed to connect wia ssl. How can i import the proper connections string to you scritp?

Thank You

@nightw
Copy link
Owner

nightw commented Dec 7, 2019

I checked the code quickly and it seems that it only adds the following to the end of the MongoDB connection string: /?ssl=true. It uses the PHP's native SSL extension and the MongoDB plugin's feature built on it to connect to the server using SSL.

I am not completely sure this should work, because I have not used this code for years, but if you need more pointers on how to test/fix this I think this is the related documentation of the PHP MongoDB plugin: https://www.php.net/manual/en/mongo.connecting.ssl.php

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