VMWARE Wizard (vMA plugin) could not find datastores

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

VMWARE Wizard (vMA plugin) could not find datastores

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post 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
You do not have the required permissions to view the files attached to this post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: VMWARE Wizard (vMA plugin) could not find datastores

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

Re: VMWARE Wizard (vMA plugin) could not find datastores

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

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post by Box293 »

Do you have any datastores that are currently not connected, like when the host is turned off they appear in italics?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post 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+)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: VMWARE Wizard (vMA plugin) could not find datastores

Post by Box293 »

Give me a couple of days to investigate and see what is going on.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked