In this case the internal API that i should use for the special agent is broken.
The funny thing is my special agent is currently the only special agent who has used the API functions ![]()
Now also a PR for my own code is submitted. ![]()
Lol, thanks Andreas for the workaround.
We have a support ticket and a developer is also looking into it (so that we can fix the root-cause, the API).
Or remove it as i was the only one using it ![]()
Fortunately I am not a developer, so I can pretend to know nothing ![]()
With p5 the check should have been fixed, at least according to the changes. If I run the Check in CheckMK or manually using the python agent file, I can specify --no-cert-check but it still fails with SSL: CERTIFICATE_VERIFY_FAILED: self-signed certificate
Am I missing something?
Can you pls post the command line like it is used on your system now?
I run the following:
/omd/sites/spcm/share/check_mk/agents/special/agent_prism --server <prism-ip> --no-cert-check --username username --password 'XXXX' --port 9440 --debug
Ok if i have my bugfix mkp installed - my version of the special agent is working.
It is ignoring all certificates ![]()
I found the error - you cannot set requests.session.verify to false if REQUEST_CA_BUNDLE environment is set.
Github Discussion → Session.verify=False ignored when REQUESTS_CA_BUNDLE environment variable is set · Issue #3829 · psf/requests · GitHub
Now i submit one more PR that fixes this issues that was not present in my first fix ![]()
Some nice things for @martin.hirschvogel ![]()
For fairness: you as the original author hard-coded skipping the verification
- a freedom you can have in your extensions, but which nowadays doesn’t pass our security team.
Ok - that’s fine - but now it crashes every time you try to switch of the validation.
PR is made^^
Yeah, just looked at the PR… (Second fix for Nutanix agent ssl verify problems by Yogibaer75 · Pull Request #703 · Checkmk/checkmk · GitHub)
What a stupid bug…
@gulaschcowboy Is that you in the GitHub Issue discussion on the requests package? ![]()
I was thinking the same ![]()
---------___---------
Someone stole my name ![]()
And here is the fix Nutanix agent: resolve verify error when environment REQUEST_CA_BUNDLE is set
Release is planned for today when the real gulasch guy has approved it ![]()
And p6 is available for download.
Problem is fixed and the new nutanix agent is great!
