alerta-contrib icon indicating copy to clipboard operation
alerta-contrib copied to clipboard

Information to add Fail2ban Alert to Alerta with alerta = Docker-compose

Open barto95100 opened this issue 3 years ago • 3 comments
trafficstars

Hi thank's for your work

How i configure the alerta/Fail2ban when Alerta is installed in docker-compose ?

I don't understand...

Thank's for your help

barto95100 avatar Oct 11 '22 21:10 barto95100

@barto95100 As far as I can understand. You have to list the plugin name in the docker compose file. Then mount a custom alertad.conf to /etc/alertad.conf inside the container and put your plugin configurations there. Format is simple KEY='value'. This same applies to every configuration option that is not listed in docs.alerta.io which lists the supported environment variables.

xpufx avatar Oct 02 '23 22:10 xpufx

To install the Fail2ban webhook check these instructions: https://github.com/alerta/docker-alerta/tree/master/examples/webhook

On restart, Alerta will automatically detect this webhook and you can then configure your Fail2ban instances to send to Alerta.

Edit: Or to build the image as a part of the compose check this: https://docs.alerta.io/gettingstarted/tutorial-10-docker.html#step-4-install-additional-plugins-or-webhooks

davidusken avatar Jan 31 '24 07:01 davidusken

Thank's for your reply I test and send feedback :)

barto95100 avatar Jan 31 '24 15:01 barto95100