dav3860 / vmbix

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

Error Value network / Error CPU #4

Closed sgiaicheca closed 10 years ago

sgiaicheca commented 10 years ago

Hi, I've configured vmbix with wrapper to put discovered vms to different hostgroups but i've got some errors CPU Ready has this error but value are OK Network Rx&Tx have this error but no value Error : Received value [] is not suitable for value type [Numeric (float)]

have you got an idea ?

dav3860 commented 10 years ago

Hi, I'm not sure to clearly understand. This error is reported by Zabbix because it received just a space or a carriage return I think. Do you have correct values for the cpu.ready items using the vm.counter[VM,cpu.ready] method ? What do you have when you query vmbix using zabbix_get ?

zabbix_get -s localhost -p 12050 -k vm.counter[VMNAME,cpu.ready]
zabbix_get -s localhost -p 12050 -k vm.counter[VMNAME,net.bytesRx]
sgiaicheca commented 10 years ago

Hi, For CPU Ready : I've already run a zabbix_get and i've got no value Very strange cause on 100Vms I've got just one which had this problem I've launched a new discovery from your script but same error. The items with vm.counter have not value For Network : I've got this error on another zabbix which connected to vShere 4.1 => no network value on all vms On this platform, value get average two seconds to appears. Perhaps time out ? I try to reconfigure it

dav3860 commented 10 years ago

Can you post the output of the /var/log/messages of your VmBix servers when you reproduce the issue ?

sgiaicheca commented 10 years ago

I've changed value for network on zabbix for 4.1 => net.received / net.transmitted All is OK For the other Zabbix, when i try zabbix_get -s localhost -p 12050 -k vm.counter.discovery[VMNAME, net.received] i've got a timeout I've changed the timeout zabbix server timeout to his max (30s) and same thing Here is the log localhost vmbixd: #011at net.djarvur.vmbix.VmBix$Connection.checkAllPatterns(Unknown Source) localhost vmbixd: #011at net.djarvur.vmbix.VmBix$Connection.run(Unknown Source)

dav3860 commented 10 years ago

I need more logs. Please restart the vmbixd service on the problematic server and get the logs of the restart. then reproduce the issue and collect these log lines too. Post them on pastebin for example.

sgiaicheca commented 10 years ago

pasted http://pastebin.com/yRESfhqT

dav3860 commented 10 years ago

Can you try with the latest build (1.2-dev, see the Release section) ?

sgiaicheca commented 10 years ago

Perfect With this latest version items are ok Thanks