I did something similar a while back but used a PHP script to send the notifications to Slack: <a href="https:&#x2F;&#x2F;savjee.be&#x2F;2015&#x2F;09&#x2F;Sending-fail2ban-notifications-and-others-to-slack-chat-channel&#x2F;" rel="nofollow">https:&#x2F;&#x2F;savjee.be&#x2F;2015&#x2F;09&#x2F;Sending-fail2ban-notifications-and...</a>