-
-
Save kael/b35a2ec5ae8616b1c1f30be03d3cc5e6 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