virt plugin: Added connection state check via virConnectIsAlive()
authorPavel Rochnyack <pavel2000@ngs.ru>
Fri, 24 May 2019 10:56:27 +0000 (17:56 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Fri, 24 May 2019 11:00:23 +0000 (18:00 +0700)
commit47e93ad3cb7e70064ac19a03c34b6e6835f19fd5
tree35e181bf75aad4af7f5ac00c6d140e6c32e04668
parentc09f8ee768891aee1222ad0a3e19c66b099cc973
virt plugin: Added connection state check via virConnectIsAlive()

Before this fix, if libvirt daemon was stopped, Collectd starts to spam logs with lot of "failed" messages.

With this fix it correctly re-establishes connection.
src/virt.c