ESX check authentication

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kaiserclaw
Posts: 15
Joined: Thu Dec 10, 2015 5:30 am

ESX check authentication

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ESX check authentication

Post by rkennedy »

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

Post by kaiserclaw »

Doesn't work. Had to add "-D [email protected]" in the command and it now works.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ESX check authentication

Post 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!
Former Nagios Employee
Locked