Page 1 of 1
box293_check_vmware vCenter Server Credentials
Posted: Fri Jul 24, 2015 10:47 am
by hillhealthcenter
Hello Nagios Family!
I'm following the box293_check_vmware manual to configure NagiosXI to monitor our vCenter environment.
I've followed the steps in the document with success until I got stuck on page 10 under at:
vCenter Server Credentials
Type ~/box293_check_vmware.pl --server 192.168.zzz.zzz --check vCenter_Name_Version and press Enter
When I enter the command I get prompted for a password.
I found another forum thread for a similar issue. However, the steps in the thread didn't solve my issue.
Re: box293_check_vmware vCenter Server Credentials
Posted: Fri Jul 24, 2015 11:11 am
by ssax
Hello!
Did you run this command with the proper information? Did it output any errors at all? That command stores the credentials.
Code: Select all
/usr/lib/vmware-vcli/apps/general/credstore_admin.pl add --server 192.168.X.X --username YOURUSERNAME --password "YOURPASSWORD"
Does the password have any special characters like $ or !? If so, you might try using single quotes around your password instead of double:
Code: Select all
/usr/lib/vmware-vcli/apps/general/credstore_admin.pl add --server 192.168.X.X --username YOURUSERNAME --password 'YOURPASSWORD'
Re: box293_check_vmware vCenter Server Credentials
Posted: Fri Jul 24, 2015 12:02 pm
by hillhealthcenter
ssax, thanks for getting back to me.
Yes, I checked several times that I ran the command correctly. Does matter that I'm using a domain user account (ex.
[email protected]) vs. local user account to connect to vCenter?
I'm using an alpha numeric password (no special characters). But I modified the credentials to see if single quotes or double quotes would work anyway. It didn't matter.
Re: box293_check_vmware vCenter Server Credentials
Posted: Fri Jul 24, 2015 1:35 pm
by tgriep
You may have to use a local account to login to this but tale a look at page 27 of the document about using the --username and --password arguments and also to check the credentials repository.
Re: box293_check_vmware vCenter Server Credentials
Posted: Fri Jul 24, 2015 1:37 pm
by hillhealthcenter
*Update* Close Thread Please
A colleague of mine (Ryan Hurley) discovered that the behavior was caused by too many (more than one bad) entries in the credstore.
