dav3860 / vmbix

Fork of vmbix, a TCP proxy for querying a VMWare infrastucture with Zabbix
53 stars 19 forks source link

datastore.discovery does not distinguish between different datastore types #19

Closed S-O closed 8 years ago

S-O commented 9 years ago

zabbix_get -s 127.0.0.1 -p 12053 -k 'datastore.discovery'

Exception in thread "Thread-3" java.lang.ClassCastException: com.vmware.vim25.NasDatastoreInfo cannot be cast to com.vmware.vim25.VmfsDatastoreInfo
        at net.djarvur.vmbix.VmBix$Connection.getDatastores(Unknown Source)
        at net.djarvur.vmbix.VmBix$Connection.checkAllPatterns(Unknown Source)
        at net.djarvur.vmbix.VmBix$Connection.run(Unknown Source)

Using vSphere Perl SDK I can see that a Datastore Object has a Property 'summary' of type 'DatastoreSummary'. It has a field named 'type' which can have a value which is not 'VMFS'. In my case it is 'NFS'. Maybe this can help you.

acxadoom commented 8 years ago

Hi I have fixed this issue, see into open issue the resolution.

dav3860 commented 8 years ago

Hi, I've just uploaded the version 2.0 which should fix this.