improved apprise fail2ban integration (support tagging)

This commit is contained in:
Chris Caron 2026-01-28 21:49:42 -05:00
parent 9887ee4412
commit 6cdb5738ec
2 changed files with 14 additions and 5 deletions

View file

@ -45,5 +45,9 @@ actionunban =
# Define location of the default apprise configuration file to use
#
config = /etc/fail2ban/apprise.conf
# Support passing in arguments for example: "-g fail2ban"
#
apprise = apprise -c "<config>"
apprise_args =
#
apprise = apprise -c "<config>" <apprise_args>

View file

@ -228,11 +228,16 @@ action_xarf = %(action_)s
xarf-login-attack[service=%(__name__)s, sender="%(sender)s", logpath="%(logpath)s", port="%(port)s"]
# ban & send a notification to one or more of the 50+ services supported by Apprise.
# See https://github.com/caronc/apprise/wiki for details on what is supported.
# See https://appriseit.com/services/ for details on what is supported.
# See https://appriseit.com/getting-started/configuration/ for information on how to prepare
# an Apprise configuration file. Both YAML and TEXT formats are supported
#
# You may optionally over-ride the default configuration line (containing the Apprise URLs)
# by using 'apprise[config="/alternate/path/to/apprise.cfg"]' otherwise
# /etc/fail2ban/apprise.conf is sourced for your supported notification configuration.
# By default apprise attempts to load the configuration file found in
# /etc/fail2ban/apprise.conf unless you over-ride this.
#
# Leverage apprise_args to optionally identify tags (--tag <tag>) entries
# apprise[config="/alternate/path/to/apprise.cfg", apprise_args='-g fail2ban']
# apprise[config="/alternate/path/to/apprise.yaml", apprise_args='--tag fail2ban']
# action = %(action_)s
# apprise