Using zabbix to monitor vmware datastores

monitoringvmware-esxvmware-esxizabbix

The current vmware infrastructure is a mix of ESX and ESXi at 3, 3.5 and 4.1 releases. What I would like to achieve is being able to monitore the free space of the datastores through zabbix which is our current monitoring solution.

Is there a way of achieving this?

Best Answer

This is trivial with the VMware API and VMware has some example scripts that you can use as a starting point. First, download the vSphere SDK for Perl 4.1 from http://www.vmware.com/support/developer/viperltoolkit/ and install it on your Zabbix server. You'll need this version to support ESX/ESXi 3.0.1 through 4.1.

Then you can use one of the included Perl scripts, such as dsbrowse.pl, as a starting point for making your own custom check in Zabbix. The SDK also includes other scripts which may be useful.