[ZBXNEXT-2010] Support Storage Capacity Counters in VMware Simple Checks Created: 2013 Nov 11  Updated: 2016 Nov 10  Resolved: 2016 Nov 09

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Proxy (P), Server (S)
Affects Version/s: 2.2.0
Fix Version/s: 3.0.6, 3.2.2, 3.4.0alpha1

Type: Change Request Priority: Major
Reporter: Henrik Johansen Assignee: Unassigned
Resolution: Fixed Votes: 29
Labels: newitemkey, vmware
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBXNEXT-2867 vmware disk perfcounter Closed
is duplicated by ZBX-10298 VMware datastore usage monitoring Closed

 Description   

The current implementation of VMware monitoring lacks the ability to monitor used, capacity and provisioned space on datastores.

Keeping an eye on storage usage is a rather critical feature to have.

See : http://pubs.vmware.com/vsphere-55/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc%2Fdisk_storutil_counters.html



 Comments   
Comment by richlv [ 2014 Mar 16 ]

do storage item keys (see https://www.zabbix.com/documentation/2.2/manual/config/items/itemtypes/simple_checks/vmware_keys) provide some of the desired functionality ?

on the second thought, that's per vm and total was probably requested

Comment by Justin Gerry [ 2015 Jun 11 ]

Has there been any changes on this? It surprises me that something as basic as "how much space remains on my datastore" does not appear to be implemented.

Comment by Andris Zeila [ 2015 Aug 05 ]

I did few quick tests and it does not look good. It might be the test vSphere setup, but it reported no real-time statistics for datastore objects. This means we can't just simply drop in datastore performance entity support.

One way to get latest data would be specifying start time, but as maxSample appears to be ignored in this case, we would still need to know the data gathering interval.

Comment by Dmitry Safronov [ 2016 Feb 02 ]

I tired of trying to use perfcounters and other things.
So i decided to use snmp monitiring. I have downloaded here template "ESXi snmp" and it's work great. Only one problem, I cant get datastore "label"(name), just #snmpindex that is number, or #snmplabel that is number too...

Comment by cru5ader [ 2016 Feb 02 ]

Maybe this help https://www.zabbix.com/forum/showthread.php?t=52084

Comment by Dmitry Safronov [ 2016 Mar 15 ]

is it any solution in zabbix 3.0?

Comment by Andris Zeila [ 2016 Oct 06 ]

While using performance counters would not be simple, we could get the capacity, free space and uncommited space from datastore configuration summary.

Comment by Andris Zeila [ 2016 Oct 11 ]

So the plan is to add a key to monitor datastore capacity statistics - vmware.hv.datastore.size[<url>,<uuid>,<datastore>,<mode>] where:

  • url - VMware service URL
  • uuid - VMware hypervisor host name
  • datastore - datastore name
  • mode:
    • total - maximum capacity of this datastore, in bytes (default)
    • free - available space of this datastore, in bytes
    • pfree - available space of this datastore, in percentage
    • uncommitted - total additional storage space, in bytes, potentially used by all virtual machines on this datastore

However storage capacity counters will not be used. This data will be taken from datastore summary property.

Comment by Andris Zeila [ 2016 Oct 11 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-2010

Comment by dimir [ 2016 Nov 04 ]

(1) [SP] A small improvement would be to check for zero capacity in

[...]
SET_DBL_RESULT(result, (double)datastore->free_space / datastore->capacity * 100);
[...]

wiper RESOLVED in r63554

<dimir> CLOSED

Comment by dimir [ 2016 Nov 04 ]

Just a note that it looks like while developing this functionality wiper has fixed potential Zabbix server/proxy crash that could happen during datastore summary request if there was a problem with connection to the web server (libcurl error).

Before this fix function vmware_service_create_datastore() would still allocate and return datastore object (with NULL name and uuid) in case of libcurl error.

Comment by Andris Zeila [ 2016 Nov 08 ]

Released in:

  • pre-3.0.6rc1 r63584
  • pre-3.2.2rc1 r63586
  • pre-3.3.0 r63587
Comment by Andris Zeila [ 2016 Nov 08 ]

Documented in:

Official templates updated at https://www.zabbix.org/wiki/Zabbix_Templates/Official_Templates

sasha "Template changes" section must be moved from What's new to Template changes page

REOPENED

wiper RESOLVED

sasha Thanks a lot! CLOSED

Generated at Sat Apr 27 07:52:41 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.