dav3860 / vmbix

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

Empty data after some idle time (about 30 min) #44

Open alexk24 opened 7 years ago

alexk24 commented 7 years ago

CentOS Linux release 7.3.1611 (Core) + EPEL java-1.7.0-openjdk-1.7.0.131-2.6.9.0.el7_3.x86_64 vmbix installed from vmbix-2.6.0.157-1.x86_64.rpm

After some idle time (about 30 min) working it start return empty data:

zabbix_get -s 127.0.0.1 -k "vmbix[esx.discovery,*]"

{"data":[]}

zabbix_get -s 127.0.0.1 -k "vmbix[cluster.discovery]"

{"data":[]}

After restart it again working. Logs seems clean.

Log: 2017-03-24 18:35:19,398 INFO [main] [VmBix.java:260] creating pid file /var/run/vmbix.pid 10329 2017-03-24 18:35:22,305 INFO [main] [VmBix.java:489] starting server on 127.0.0.1/12050 2017-03-24 18:35:22,306 INFO [main] [VmBix.java:496] server started 2017-03-24 18:35:22,372 DEBUG [Thread-2] [VmBix.java:4142] Thread created, collecting data in 1 threads 2017-03-24 18:35:22,373 DEBUG [Thread-2] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 18:35:22,631 DEBUG [Thread-2] [VmBix.java:4168] Request took 258 ms 2017-03-24 18:35:24,666 DEBUG [Thread-2] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2017-03-24 18:40:24,059 DEBUG [Thread-3] [VmBix.java:4142] Thread created, collecting data in 1 threads 2017-03-24 18:40:24,060 DEBUG [Thread-3] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 18:40:24,278 DEBUG [Thread-3] [VmBix.java:4168] Request took 218 ms 2017-03-24 18:40:26,312 DEBUG [Thread-3] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2017-03-24 19:11:51,052 DEBUG [Thread-4] [VmBix.java:4142] Thread created, collecting data in 1 threads 2017-03-24 19:11:51,052 DEBUG [Thread-4] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 19:11:51,135 DEBUG [Thread-4] [VmBix.java:4168] Request took 83 ms 2017-03-24 19:11:53,168 DEBUG [Thread-4] [VmBix.java:4190] Thread closed, collecting data in 0 threads 2017-03-24 19:11:54,713 DEBUG [Thread-5] [VmBix.java:4142] Thread created, collecting data in 1 threads 2017-03-24 19:11:54,714 DEBUG [Thread-5] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 19:11:54,739 DEBUG [Thread-5] [VmBix.java:4168] Request took 25 ms 2017-03-24 19:11:56,173 DEBUG [Thread-6] [VmBix.java:4142] Thread created, collecting data in 2 threads 2017-03-24 19:11:56,173 DEBUG [Thread-6] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 19:11:56,184 DEBUG [Thread-6] [VmBix.java:4168] Request took 11 ms 2017-03-24 19:11:56,783 DEBUG [Thread-5] [VmBix.java:4190] Thread closed, collecting data in 1 threads 2017-03-24 19:11:58,221 DEBUG [Thread-6] [VmBix.java:4190] Thread closed, collecting data in 0 threads

manual restart

2017-03-24 19:12:49,499 INFO [Thread-0] [VmBix.java:4200] Shutting down 2017-03-24 19:12:49,499 INFO [Thread-0] [VmBix.java:277] Pid file deleted. 2017-03-24 19:12:49,543 INFO [Thread-0] [VmBix.java:460] disconnected 2017-03-24 19:12:49,543 INFO [Thread-0] [VmBix.java:465] Shutted down 2017-03-24 19:12:51,221 INFO [main] [VmBix.java:260] creating pid file /var/run/vmbix.pid 17885 2017-03-24 19:12:54,363 INFO [main] [VmBix.java:489] starting server on 127.0.0.1/12050 2017-03-24 19:12:54,364 INFO [main] [VmBix.java:496] server started 2017-03-24 19:12:55,923 DEBUG [Thread-2] [VmBix.java:4142] Thread created, collecting data in 1 threads 2017-03-24 19:12:55,924 DEBUG [Thread-2] [VmBix.java:554] Parsing this request : ZBXD.........cluster.discovery 2017-03-24 19:12:56,096 DEBUG [Thread-2] [VmBix.java:4168] Request took 172 ms 2017-03-24 19:12:58,134 DEBUG [Thread-2] [VmBix.java:4190] Thread closed, collecting data in 0 threads

dav3860 commented 7 years ago

Hi, what is the version of the vCenter ? How many ESX hosts do you have ?

alexk24 commented 7 years ago

vCenter Server 5.5.0 3252642 tested on two diffirent vCenter's and infrastructures. 8 and 10 servers.

Error apears only if vmbix idle. on working enveronment - error not seen.