WENDELMATTOSICLOUD / vmbix

Automatically exported from code.google.com/p/vmbix
0 stars 0 forks source link

Queries for Datastores not working #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install VMBix 1.0.1, jre 1.7.0_09, Zabbix 1.8.2
2. Query: zabbix_get -s localhost -p 12050 -k datastore.size[Datastore01,total]
2. Query: zabbix_get -s localhost -p 12050 -k datastore.size[Datastore01,free]

Any other query will work on other items (ESX, VMs, etc.)

What is the expected output? What do you see instead?
Expected: total or free space
Seen: 0

Logs: 
Nov 21 16:17:38 A-FDI-BON-ZBX01 vmbixd: No datastore named 'Datastore01' found

What version of the product are you using? On what operating system?
VMBix 1.0.1, jre 1.7.0_09, Zabbix 1.8.2, on Debian 6 (installed Zabbix from 
debian package).

Please provide any additional information below.

Which is the correct way to query for the Datastores?

Original issue reported on code.google.com by rmicmirr...@gmail.com on 21 Nov 2012 at 3:24

GoogleCodeExporter commented 8 years ago
In vsphere 5.5 found out that read-only role in vcenter is not enough. Works 
fine with administrator role. Did not have time to check what  permission is 
exactly required

Original comment by chartran...@gmail.com on 21 May 2014 at 1:23

GoogleCodeExporter commented 8 years ago

I can confirm this. Even with administrator role, VMBix cannot collect 
datastore data from vcenter on Vphere 6.0 

Running VmBix version 1.1.1 

Command :
zabbix_get -s localhost -p 12050 -k datastore.size[datastore1,free]
Returns: 0

Logging returns:  
vmbixd: No datastore named 'datastore1' found
vmbixd: thread  closed, collecting data in 1 threads
vmbixd: thread  closed, collecting data in 0 threads
vmbixd: No datastore named 'datastore1' found
vmbixd: No datastore named 'datastore1' found

Even though Vcenter has a declared datastore named: datastore1. 

Running the same command, on vmbix bridged with vcenter 5.0 that has 
"datastore1" works ok
zabbix_get -s  10.xx.xx.xx -p 12050 -k datastore.size[datastore1,free]
292917608448

Original comment by akis.maz...@persado.com on 15 Jun 2015 at 2:09