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

Internal CA Issue #1

Open
mcpl-rhb opened this issue Oct 14, 2024 · 5 comments
Open

Internal CA Issue #1

mcpl-rhb opened this issue Oct 14, 2024 · 5 comments

Comments

@mcpl-rhb
Copy link

mcpl-rhb commented Oct 14, 2024

What a great idea! We use internal CA certs on our Zabbix server. This seems to have resulted in this - Error API: HTTPSConnectionPool(host='xxx.xxx.xxx.xxx, port=443): Max retries exceeded with url: /api_jsonrpc.php (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))

We added our Root certs into the system, but still no go.

@Udeus
Copy link
Owner

Udeus commented Oct 14, 2024

Download new version, and try:
python main.py --url <zabbix_address_url> --token <zabbix_api_token> --no-verify

And check response message.

@mcpl-rhb
Copy link
Author

Mostly worked. It did throw the same error upon starting the console, and for each step of each operation. So yes, hundreds of error messages. Also, it then failed with an error at about halfway through. I attached the error messages as a photo. Still it looks like it generally work. A great step and I truly appreciate your efforts.
Screenshot 2024-10-14 at 2 55 11 PM

@Udeus
Copy link
Owner

Udeus commented Oct 14, 2024

What is your Zabbix version?

Check script new version and send new error message.

@mcpl-rhb
Copy link
Author

mcpl-rhb commented Oct 16, 2024 via email

@WerVa
Copy link

WerVa commented Nov 20, 2024

Can you add something like this:

verify_ssl = not args.no_verify
zabbix_version = None

if not verify_ssl:
    import urllib3
    urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

This will ignore warnings when someone uses the no-verify option every time they download a template

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

3 participants