Created
September 9, 2014 13:58
-
-
Save alexalouit/6aa956ebefdf3b18c21d to your computer and use it in GitHub Desktop.
Collectd: Fail2ban
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadPlugin tail | |
<Plugin "tail"> | |
<File "/var/log/fail2ban.log"> | |
Instance "fail2ban" | |
<Match> | |
Regex "Ban" | |
DSType "CounterInc" | |
Type "counter" | |
Instance "fail2ban-ban" | |
</Match> | |
<Match> | |
Regex "Unban" | |
DSType "CounterInc" | |
Type "counter" | |
Instance "fail2ban-unban" | |
</Match> | |
</File> | |
</Plugin> | |
#TODO: Add regex for avoid already ban | |
#TODO: get current jail & create instace with it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment