Page 1 of 1

ESX check authentication

Posted: Wed Feb 17, 2016 5:25 am
by kaiserclaw
Hi,

I have added a host using the Host wizard and selected ESXi, username and password.
When I run CPU Usage check, I get error message:
CHECK_VMWARE_API UNKNOWN - Error: Can not complete login due to an incorrect username or password.

On my ESX 6 environment, I have added a local account: [email protected] password Sommar15
and an AD account [email protected] password Sommar15. Both accounts have read only rights

The command I run looks like this:

check_vmware_api -u [email protected] -p Sommar15 -H 192.168.1.100 -l CPU -s usage -w 75 -c 90

I also replaced the user to only monitoring and [email protected]

This has worked before but I have changed the ESX server and added the accounts but it does not work.
I removed both monitoring accounts and added them again in order to rule out any fault with passwords or misspelling. This is also done in AD.
I tried the root account from the ESX and the command worked. I prefer not to use this account.

What am I doing wrong?

Thanks in advance

Re: ESX check authentication

Posted: Wed Feb 17, 2016 11:39 am
by rkennedy
What happens if you set your [email protected] as a MACRO? The @ symbol may be causing an issue.

Re: ESX check authentication

Posted: Thu Feb 18, 2016 4:45 am
by kaiserclaw
Doesn't work. Had to add "-D [email protected]" in the command and it now works.

Re: ESX check authentication

Posted: Thu Feb 18, 2016 10:49 am
by rkennedy
Ah - glad to see you found a resolution. I thought it might have to do with the @ sign.

I'll go ahead and mark this as resolved - feel free to open a new thread if you need any help in the future!