Page 1 of 2
VMWARE Wizard (vMA plugin) could not find datastores
Posted: Fri Feb 12, 2016 12:02 pm
by dlukinski
Hello XI Support
Please help with VMWARE plugin (one done by Troy Lea) which is unable to retrieve VMWARE Datastores
- works for vCenter
- works for Hosts
But not datastores (No datastores found!) when trying to "Retrieve Datastores.
- Multiple VMWARE 5.5 Clusters + 3 PAR store on the other side
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Fri Feb 12, 2016 2:40 pm
by jolson
I would like to see the service check that's being generated from the wizard and try it out on my test VMware server. You can view the service check by clicking this button:
2016-02-12 13_39_43-Nagios XI - Nagios Core Config Manager - Chromium.png
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Fri Feb 12, 2016 3:28 pm
by dlukinski
jolson wrote:I would like to see the service check that's being generated from the wizard and try it out on my test VMware server. You can view the service check by clicking this button:
2016-02-12 13_39_43-Nagios XI - Nagios Core Config Manager - Chromium.png
There are no service checks generated, because it cannot list datastores to begin with?
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Mon Feb 15, 2016 10:24 am
by tgriep
I found the following in the Manual and it looks like it is a permission issue. Try changing that and see if that helps.
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”.
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Thu Mar 03, 2016 4:25 pm
by dlukinski
tgriep wrote:I found the following in the Manual and it looks like it is a permission issue. Try changing that and see if that helps.
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”.
I was told these were assigned, but have no way to verify.
- still not listing datastores during the initial wizard configurations
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Thu Mar 03, 2016 5:41 pm
by Box293
dlukinski wrote:I was told these were assigned, but have no way to verify.
You can open the vSphere client as the user that the vMA connects as.
Then navigate to Inventory > Datastores and Datastore Clusters.
If you can see the datastores, then the permissions is correct.
If it's not permission related, please do the following:
Log into the vMA as vi-admin
Execute the follwowing command:
Code: Select all
~/box293_check_vmware.pl --server your_vcenter_server --check List_Datastores --debug
This will create the file
/home/vi-admin/box293_check_vmware_debug_log.txt
Please PM me that file and I'll investigate some more.
AND also if it errors with something like
Can't use an undefined value as an ARRAY reference at /home/vi-admin/box293_check_vmware.pl line xxx let me know what that line says.
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Mon Mar 07, 2016 3:55 pm
by dlukinski
Box293 wrote:dlukinski wrote:I was told these were assigned, but have no way to verify.
You can open the vSphere client as the user that the vMA connects as.
Then navigate to Inventory > Datastores and Datastore Clusters.
If you can see the datastores, then the permissions is correct.
If it's not permission related, please do the following:
Log into the vMA as vi-admin
Execute the follwowing command:
Code: Select all
~/box293_check_vmware.pl --server your_vcenter_server --check List_Datastores --debug
This will create the file
/home/vi-admin/box293_check_vmware_debug_log.txt
Please PM me that file and I'll investigate some more.
AND also if it errors with something like
Can't use an undefined value as an ARRAY reference at /home/vi-admin/box293_check_vmware.pl line xxx let me know what that line says.
Hello Troy
Here you go: command output attached
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Mon Mar 07, 2016 5:38 pm
by Box293
Do you have any datastores that are currently not connected, like when the host is turned off they appear in italics?
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Tue Mar 08, 2016 11:23 am
by dlukinski
Box293 wrote:Do you have any datastores that are currently not connected, like when the host is turned off they appear in italics?
In answer to your previous email, I am able to navigate via VIEW - INVENTORY - DATASTORES AND DATASTORE CLUSTERS.
- not via INVENTORY top menu, though.
None in italic.
Wonder if the number of datastores would be an issue?
- there are quite a few (200+)
Re: VMWARE Wizard (vMA plugin) could not find datastores
Posted: Tue Mar 08, 2016 4:10 pm
by Box293
Give me a couple of days to investigate and see what is going on.