fail2ban/fail2ban — Issue #10: Add <jail> and <num_banned_ips> tags for actionban/actionunban
Author: selivan
Created: 2011-11-23 16:38:35+00:00
State: open

I'v succesfuly integrated fail2ban with [Zabbix](http://zabbix.com) monitoring system. Each time actionban/actionunban happens, external script is called to pass parameters to Zabbix server. Different jails have different triggers in Zabbix, because I want to know not only from which ip attack happend, but also what service was attacked. actionban/actionunban doesn't know, for which jail it was called, so I need to write separate action scripts for each service. If tag will be added, single script for all actions may be used. If tag will be added(I mean number of banned ips in current jail), external script with call to fail2ban-client will not necessary.

If this changes will be made, integrating with different monitoring services will be as easy as configuring mail warnings and may become out-of-the-box fail2ban ability. I can provide actions configuration, Zabbix template and how-to insruction for wiki.