Page 1 of 1

Unable to retrieve vCenter Datacenter objects

Posted: Wed Jul 26, 2017 12:25 pm
by dlukinski
Hello XI Support

We are unable to retrieve vCenter Datacenter objects after credentials change (and change back to those we've used before) for box293 plugin

No vCenter datacenters found!

When testing from vma (to obtain the version), we get one, but username requested once more. Username contains '@' symbol and so is the password.

Please help to fix this (worked previously with the same XI & vMA appliance)

Thank you

Re: Unable to retrieve vCenter Datacenter objects

Posted: Wed Jul 26, 2017 12:41 pm
by dlukinski
dlukinski wrote:Hello XI Support

We are unable to retrieve vCenter Datacenter objects after credentials change (and change back to those we've used before) for box293 plugin

No vCenter datacenters found!

When testing from vma (to obtain the version), we get one, but username requested once more. Username contains '@' symbol and so is the password.

Please help to fix this (worked previously with the same XI & vMA appliance)

Thank you
XI-side test:
Credentials test did not perform as expected on the vMA host 10.102.36.177 connecting to the VMware server 172.18.20.13!
Please refer to the box293_check_vmware manual on how to configure the credentials on the vMA host.
Output from command:
CRITICAL - Plugin timed out after 10 seconds

Re: Unable to retrieve vCenter Datacenter objects

Posted: Wed Jul 26, 2017 3:52 pm
by tgriep
I found this in the Manual for the plugin.
Plugin fails to find objects such as Datastores
It has been observed that in some instances the plugin cannot locate datastores. For example:
Command:
• ./box293_check_vmware.pl --server vcenter.box293.local --check Datastore_Usage --name VOL_01
Output:
• UNKNOWN: Datastore 'VOL_01' not found
The problem is with the permissions that have been applied in the vSphere Client. For some reason assigning
the permissions at the top level of “Inventory > Hosts and Clusters” is not enough. You need to also assign the
permissions at the top level of “Inventory > Datastores and Datastore Clusters”.
Try that and see if this fixes the issue for you.

This is the link to the plugin if you need to refer to the manual for setting up the permissions for the plugin.
https://exchange.nagios.org/directory/P ... re/details

Re: Unable to retrieve vCenter Datacenter objects

Posted: Wed Jul 26, 2017 5:48 pm
by dlukinski
tgriep wrote:I found this in the Manual for the plugin.
Plugin fails to find objects such as Datastores
It has been observed that in some instances the plugin cannot locate datastores. For example:
Command:
• ./box293_check_vmware.pl --server vcenter.box293.local --check Datastore_Usage --name VOL_01
Output:
• UNKNOWN: Datastore 'VOL_01' not found
The problem is with the permissions that have been applied in the vSphere Client. For some reason assigning
the permissions at the top level of “Inventory > Hosts and Clusters” is not enough. You need to also assign the
permissions at the top level of “Inventory > Datastores and Datastore Clusters”.
Try that and see if this fixes the issue for you.

This is the link to the plugin if you need to refer to the manual for setting up the permissions for the plugin.
https://exchange.nagios.org/directory/P ... re/details
I cannot retrieve ANY objects, not just the datastores. That is after going back to the previous credentials.
What kind of permissions would be required for vSphere so that box293 works especially if I get this:

Credentials test did not perform as expected on the vMA host 10.102.36.177 connecting to the VMware server 172.18.18.13!
Please refer to the box293_check_vmware manual on how to configure the credentials on the vMA host.
Output from command:
CRITICAL - Plugin timed out after 10 seconds

- we've followed the manual

Re: Unable to retrieve vCenter Datacenter objects

Posted: Wed Jul 26, 2017 6:17 pm
by dlukinski
dlukinski wrote:
tgriep wrote:I found this in the Manual for the plugin.
Plugin fails to find objects such as Datastores
It has been observed that in some instances the plugin cannot locate datastores. For example:
Command:
• ./box293_check_vmware.pl --server vcenter.box293.local --check Datastore_Usage --name VOL_01
Output:
• UNKNOWN: Datastore 'VOL_01' not found
The problem is with the permissions that have been applied in the vSphere Client. For some reason assigning
the permissions at the top level of “Inventory > Hosts and Clusters” is not enough. You need to also assign the
permissions at the top level of “Inventory > Datastores and Datastore Clusters”.
Try that and see if this fixes the issue for you.

This is the link to the plugin if you need to refer to the manual for setting up the permissions for the plugin.
https://exchange.nagios.org/directory/P ... re/details
I cannot retrieve ANY objects, not just the datastores. That is after going back to the previous credentials.
What kind of permissions would be required for vSphere so that box293 works especially if I get this:

Credentials test did not perform as expected on the vMA host 10.102.36.177 connecting to the VMware server 172.18.18.13!
Please refer to the box293_check_vmware manual on how to configure the credentials on the vMA host.
Output from command:
CRITICAL - Plugin timed out after 10 seconds

- we've followed the manual
Updated vMA and credentials are now testing OK

Test Results
Credentials tested OK!

but still n datacenters found.

Only thing would be vMA being 5.5 and vCenter is version 6 (should we deploy vMA version 6 just as well?)

Also got ESXi host 6.5 vMA or the plugin cannot find

Re: Unable to retrieve vCenter Datacenter objects

Posted: Thu Jul 27, 2017 10:55 am
by dlukinski
Hi

We've found the resolution - had to do with passwords & username special character combination

/Dimitri

Re: Unable to retrieve vCenter Datacenter objects

Posted: Thu Jul 27, 2017 11:09 am
by tgriep
Thanks for reporting back your findings, if you don't have any more questions, shall I lock the post for you?

Re: Unable to retrieve vCenter Datacenter objects

Posted: Thu Jul 27, 2017 12:32 pm
by dlukinski
tgriep wrote:Thanks for reporting back your findings, if you don't have any more questions, shall I lock the post for you?
Please lock and Thank you once again (very interesting case where username has to be quoted if the pwd has special char, but no need to quote if only username has special char)