mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
improved apprise fail2ban integration (support tagging)
This commit is contained in:
parent
9887ee4412
commit
6cdb5738ec
2 changed files with 14 additions and 5 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue