Skip to content

Instantly share code, notes, and snippets.

@alexalouit
Created September 9, 2014 13:58
Show Gist options
  • Save alexalouit/6aa956ebefdf3b18c21d to your computer and use it in GitHub Desktop.
Save alexalouit/6aa956ebefdf3b18c21d 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