Unable to retrieve vCenter Datacenter objects

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Unable to retrieve vCenter Datacenter objects

Post 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
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to retrieve vCenter Datacenter objects

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

Re: Unable to retrieve vCenter Datacenter objects

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to retrieve vCenter Datacenter objects

Post 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
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to retrieve vCenter Datacenter objects

Post 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
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to retrieve vCenter Datacenter objects

Post by dlukinski »

Hi

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

/Dimitri
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Unable to retrieve vCenter Datacenter objects

Post by tgriep »

Thanks for reporting back your findings, if you don't have any more questions, shall I lock the post for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Unable to retrieve vCenter Datacenter objects

Post 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)
Locked