-
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
Fail2ban check #1427
Fail2ban check #1427
Conversation
tests seemed to have failed for python 2.6.9, I am using |
ok... now looks like I have to replace |
it helps when I run the tests locally on python 2.6 :) |
Thanks a lot Brett! We'll review this for 5.4.0 ! |
2353f53
to
0972904
Compare
import mock | ||
|
||
# project | ||
from tests.checks.common import AgentCheckTest, get_check |
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.
AgentCheckTest
is an unused import right now
Thanks for contributing @brettlangdon and sorry for the delay! Looks great overall, added a few comments on how you could modify your tests to use the standards we want to keep in the agent test suite going forward. I'd recommend looking at a test such as the go_expvar one in case the |
👍 awesome, thanks for the review, ill gladly update the tests.
|
0972904
to
fc8aaed
Compare
fc8aaed
to
015ddc6
Compare
@talwai I just updated the PR with updated test cases. Hopefully this is more in line with everything else. Let me know if I need to update anything else. |
@brettlangdon yup, looks great! Merging this |
@brettlangdon we actually had some issues with this check during integration testing for Sorry about the confusion, I'll elaborate further on how we'd like to improve the check in the next few days. |
No problems, I understand, it is a little wonky with having to grant sudo access for datadog |
Thanks for understanding. Would you mind reopening a PR from your fork so it can undergo further review? Github won't let us re-open this one since we already merged it ;) |
Add a fail2ban check, which reports stats from
fail2ban-client status <jail>