box293_check_vmware vCenter Server Credentials

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

box293_check_vmware vCenter Server Credentials

Post by hillhealthcenter »

Hello Nagios Family! :D

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.
Thanks so much,
Tom
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: box293_check_vmware vCenter Server Credentials

Post 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'
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: box293_check_vmware vCenter Server Credentials

Post 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.
Thanks so much,
Tom
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: box293_check_vmware vCenter Server Credentials

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
hillhealthcenter
Posts: 174
Joined: Fri Sep 21, 2012 7:45 am
Location: New Haven, CT

Re: box293_check_vmware vCenter Server Credentials

Post 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. :D
Thanks so much,
Tom
Locked