-
Notifications
You must be signed in to change notification settings - Fork 814
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
[snmp] convert into network-check to run instances in parallel #2152
Conversation
c1c8f75
to
1bdddc7
Compare
retries = int(instance.get('retries', self.DEFAULT_RETRIES)) | ||
|
||
# Create SNMP command generator and aliases | ||
self.create_command_generator(self.mibs_path, self.ignore_nonincreasing_oid) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why this was moved from __init__
to _check
?
Nice changes. Added a few comments here and there 🌵 |
4bb335f
to
4d644bb
Compare
thanks a lot for your input @yannmh - if you could please take another pass sometime, that'd be great. |
4d644bb
to
db0dbaa
Compare
Tests pass locally but not on Travis - check out what's up! |
073de9d
to
f52109f
Compare
Your changes look good to be merged. Failing tests are due to some |
My bad, there are actually multiple Travis CI errors. While it looks unrelated to your changes and specific to Travis CI Python 2.6 , let's investigate more before merging any change. |
fa05eca
to
da949b4
Compare
da949b4
to
146a44d
Compare
After rebasing to master all Also the |
146a44d
to
eb9a5d7
Compare
[snmp] Add instance name if not present before calling constructor. [snmp] send Status, not check state. [snmp] fixing tests [snmp] if a force reload is issued, we should first stop all threads.
[snmp] fixing-up exception related issues now that we're dealing with threads. Clean-up.
eb9a5d7
to
8af116a
Compare
closing in favor of #2214 to fix TravisCI issues. |
[snmp] convert into network-check to run instances in parallel
Multi-threaded SNMP Check (as a Network Check)
This PR allows checking for multiple SNMP instances in parallel, each running in it's own thread (within the allocated thread-pool). The actual OID/walk is still done serially for each instance, but this PR should help organizations with multiple instances configured with a performance benefit as a factor of the thread pool size.
NOTE: tests involving rates now require three runs because network checks report the results of the nth run on the n+1 run.