dav3860 / vmbix

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

vm discovery #27

Closed kcwhite1 closed 8 years ago

kcwhite1 commented 8 years ago

Hi, I was wondering if it would be possible to have the VM Power State return as one of the values from the VM discovery. We have a multi-tenant environment and in test cloud environment where there is a large number of VM which are powered off (hundred +) and I have noticed that Zabbix puts a lot of load on the vCenter server trying to retrieve data that is relevant. What I would like to do is filter the discovery so it does not add any VMs that are not powered ON.

I have also noticed an issue with the below two Zabbix cluster check which always return a value of 0, which is incorrect;

cluster.cpu[name,usage] cluster.mem[name,free]

dav3860 commented 8 years ago

Hi, Regarding the faulty methods, this will be fixed in the next release.

For the discovery, the problem is that even with caching, it would take some time to add the power state to the JSON array returned by VmBix (about 30-40% overhead). So a vm.discovery[full] method will be added in the next release, with the power state.

dav3860 commented 8 years ago

The methods have been fixed in the new release and a vm.discovery.full[*] method was added in VmBix 2.2. See README and CHANGELOG. You can download the packages here.