ESX check authentication
Posted: Wed Feb 17, 2016 5:25 am
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
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