Page 1 of 1

VMware datastore monitoring

Posted: Mon Jun 10, 2019 3:41 pm
by rferebee
Hello,

We're attempting to setup service checks for our VMware environment.

We have a virtual environment with multiple datastores, but when we configure the service check for the datastores it is only returning results for one store.

The example outlined in this help article: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Shows multiple datastores listed under the 'Datastore usage for VMHost' service check, but we're unable to get all of our datastores to show up.

Here's the command we're running:

/usr/local/nagios/libexec/check_vmware_api.pl -H "vcenter.state.nv.us" -f "/usr/local/nagiosxi/etc/components/vmware/vcenter_state_nv_us_auth.txt" -l "VMFS" -s "SOSPVH03" CHECK_VMWARE_API.PL WARNING - No volume named "SOSPVH03" found

The datastore 'SOSPVH03' does exist with that exact name. See attached screenshot.

Any idea why our check isn't finding the datastores we specify?

Re: VMware datastore monitoring

Posted: Mon Jun 10, 2019 4:44 pm
by npolovenko
Hello, @rferebee. The problem is likely 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 datastore monitoring

Posted: Tue Jul 02, 2019 11:38 am
by rferebee
Ok, we can lock this. Our VMware Admin doesn't want us to monitor the data stores.

Re: VMware datastore monitoring

Posted: Tue Jul 02, 2019 12:59 pm
by scottwilkerson
rferebee wrote:Ok, we can lock this. Our VMware Admin doesn't want us to monitor the data stores.
great!

Locking