Skip to content

Instantly share code, notes, and snippets.

@kael
Forked from alexalouit/collectd-fail2ban
Created October 29, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kael/b35a2ec5ae8616b1c1f30be03d3cc5e6 to your computer and use it in GitHub Desktop.
Save kael/b35a2ec5ae8616b1c1f30be03d3cc5e6 to your computer and use it in GitHub Desktop.
Collectd: Fail2ban
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