Esxi 500 login error

Checkmk Raw Edition 2.3.0p27
Ubuntu 24.04.2 LTS

Error message:Agent exited with code 1: Cannot login to vSphere Server (reason: [500] Internal Server Error). Please check the credentials.<<labels:sep(0)>>
{“cmk/piggyback_source_vcsa-server”: “yes”}

Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)

Hello,

I have an issue with esxi hosts and agent checking. I am confident the credentials are correct - im using a standard read-only account configured in vsphere which is propagated to the hosts

:white_check_mark: esxi hosts are managed by vsphere/vcenter

:white_check_mark: created a RO account in vsphere and propogated permissions.

:white_check_mark: agent is working great for vsphere

:x: I get the error above on the esxi hosts.

Weirdly, if i configure the specialagent in checkmk to use an elevated credential, it works. If i change back to the non elevated account, it continues to work.

another user reported a similar thing in this forum post

ESXi hosts Internal Server Error 500 Code - Troubleshooting - Checkmk Community

Any help appreciated!

Hi vlan-0,

if you want to directly monitor the esxi, local users have to be created on each esxi and you have to assign read-only permissions to that account.
Without that step, you are not allowed to access the necessary data.
You can test that when you login to the webui of the esxi.

Could you post the output of cmk -D <hostname> | grep special ?

2 Likes

thanks for responding. I had created the local user on esxi but hadnt correctly assigned the permissions.

Is the default “read-only” group sufficient?

thanks again.

yes, that is correct…