nut plugin: Multi-threaded ups polling with connect timeout.
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 10 Jul 2017 06:24:08 +0000 (13:24 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Tue, 11 Jul 2017 12:59:01 +0000 (19:59 +0700)
commitcb90ca86e2c9b797b292ecf26ac4220355a30a4d
tree9e06be2679b48ee7c8fb4e68639aeb49d4fc8e17
parentbea5daaed7b5cf9160207a95292947873fdcf927
nut plugin: Multi-threaded ups polling with connect timeout.

Changes:

* Implemented use of 'plugin_register_complex_read', so querying will be multi-threaded;
* Added 'ConnectTimeout' option, implemented with use of 'upscli_tryconnect()' added in nut-2.6.2;
* The `upscli_cleanup()` should be called only at Collectd shutdown, excessive calls was removed;
* Added `upscli_init()` call if `ForceSSL` enabled.
* Added a check for duplicated values in `UPS` option.

Closes: #2344
configure.ac
src/collectd.conf.in
src/collectd.conf.pod
src/nut.c