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
ESX check authentication
Re: ESX check authentication
What happens if you set your [email protected] as a MACRO? The @ symbol may be causing an issue.
Former Nagios Employee
-
kaiserclaw
- Posts: 15
- Joined: Thu Dec 10, 2015 5:30 am
Re: ESX check authentication
Doesn't work. Had to add "-D [email protected]" in the command and it now works.
Re: ESX check authentication
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!
I'll go ahead and mark this as resolved - feel free to open a new thread if you need any help in the future!
Former Nagios Employee