BUG: Nutanix Prism Special Agent crashing on 2.3.0

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 :wink:

Now also a PR for my own code is submitted. :rofl:

3 Likes

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 :rofl:

Fortunately I am not a developer, so I can pretend to know nothing :slight_smile:

3 Likes

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 :smiley:

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 :rofl:
Some nice things for @martin.hirschvogel :wink:

For fairness: you as the original author hard-coded skipping the verification :slight_smile: - 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? :smiley:

I was thinking the same :smiley:

:rofl: ---------___---------

Someone stole my name :rofl:

1 Like

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 :smiley:

1 Like

And p6 is available for download.

Problem is fixed and the new nutanix agent is great!

1 Like