Napsty / check_esxi_hardware

Monitoring Plugin to check the hardware of VMware ESXi servers.
https://www.claudiokuenzler.com/monitoring-plugins/check_esxi_hardware.php
70 stars 18 forks source link

Authentication Error with every non-root user #29

Closed MarcusCaepio closed 6 years ago

MarcusCaepio commented 6 years ago

Hi Claudio, using ESXi 6.5 I am currently fighting with Authgentication Errors. I want to use a monitoring user and what I did so far was: Create a user in vSphere Web Client with admin rights and also create a user local on the esxi, also with admin rights. Both gave me an authentication error and only the root user works. Can you give me a hint how to fix this? I want to use a read-only user. Anyway thanks again for the great plugin.

Napsty commented 6 years ago

Hello @MarcusCaepio Did you already try https://www.claudiokuenzler.com/blog/114/check-esxi-wbem-esxi-4.1-user-authorization ? Running a non-root user in the root group is currently your best chance. Not sure though, if this possibility was removed in 6.5 (don't have 6.5 servers to test).

But yes, I would prefer a non-root user or a user which is not in the root group, too. I've already contacted VMware at least twice in the past year about this. Nobody seems to care over there.

MarcusCaepio commented 6 years ago

Hi Claudio, thanks for the info. Too bad, VMware does not response. So I have to go to a user with root rights or the root user itself. Good to know :)

Napsty commented 1 year ago

Quick update, which definitely works with ESXi 8 and likely other versions, too: https://www.claudiokuenzler.com/blog/1288/how-to-use-check_esxi_hardware-cim-server-esxi-without-root-user