8000 nut plugin: Multi-threaded ups polling with connect timeout. by rpv-tomsk · Pull Request #2354 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

nut plugin: Multi-threaded ups polling with connect timeout. #2354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

rpv-tomsk
Copy link
Contributor
@rpv-tomsk rpv-tomsk commented Jul 10, 2017

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_connect() used before is a blocking function.
  • 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 duplicates in UPS option.

Some useful notes:

Issue: #2344

@rpv-tomsk
Copy link
Contributor Author

CC @fragtion

@rpv-tomsk rpv-tomsk force-pushed the issue-2344-nut-rework branch from 704eb56 to 1ef5c25 Compare July 10, 2017 10:40
@rpv-tomsk
Copy link
Contributor Author

CC @Geraden07

@rpv-tomsk rpv-tomsk force-pushed the issue-2344-nut-rework branch from 1ef5c25 to 6bd2109 Compare July 10, 2017 10:44
@fragtion
Copy link

Wow, exceptional work man!! =D I will test this ASAP and revert back if any issues persist

8000

@rpv-tomsk
Copy link
Contributor Author

Please revert back if NO issues persist, too. :-)

@rpv-tomsk rpv-tomsk force-pushed the issue-2344-nut-rework branch 4 times, most recently from 5fe8ee6 to 40d8037 Compare July 11, 2017 12:49
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: collectd#2344
@rpv-tomsk rpv-tomsk force-pushed the issue-2344-nut-rework branch from 40d8037 to cb90ca8 Compare July 11, 2017 13:01
@rpv-tomsk
Copy link
Contributor Author

@rubenk

Hi Ruben!

Can you please review this PR and merge it if no other remarks?

@rubenk rubenk merged commit d83bdb9 into collectd:master Jul 15, 2017
@rpv-tomsk rpv-tomsk deleted the issue-2344-nut-rework branch July 16, 2017 12:04
@octo octo added this to the 5.8 milestone Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0