alerta / alerta-contrib

Contributed integrations, plugins and custom webhooks
http://alerta.io
MIT License
119 stars 171 forks source link

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

Open barto95100 opened 1 year ago

barto95100 commented 1 year ago

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

xpufx commented 1 year ago

@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.

davidusken commented 8 months ago

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

barto95100 commented 8 months ago

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