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
Add new jail (and filter) Monitorix #2679
Conversation
fe8a9d2
to
9d77fb2
Compare
I've double-checked my commit and I can't find anything wrong in it. |
Test cases for every filter are mandatory, you have to add fail2ban/fail2ban/tests/files/logs/monitorix with log lines (and failJSON) the filter must match. |
Thank you very much for your advice and assistance. After looking into other log files, I think I have figured how it works. |
How can I fix the last two checks? |
I rewrote failregex to single much precise (anchoring, etc) regex.
You cannot, but it is not your issue - the Travis CI (and related to that coveralls) has some incorrect config yet, which targets unsupported versions of python there. |
OK, thanks. This regex looks different as how it was before. |
As for special fail2ban-related stuff, e. g. interpolated tags like Lines 474 to 497 in 6893d5a
or even man jail.conf.5. As for regex (PCRE or rather Python regular expression) see Regular Expression Syntax in Python documentation. |
Thank you very much. |
After reading |
No, it should not (as you see the tests passing). fail2ban/fail2ban/server/failregex.py Lines 59 to 61 in 6893d5a
Added in e5d02bc (and #2560) and released with 0.10.5 and 0.11.1. |
That cleared it up. |
Please, let me know if I need to do anything more in this PR to be merged. |
Please, consider adding this filter to fail2ban.
Thanks.