For this approach i will use my slackpost.sh script to send messages to Slack. More info about it you can find – https://mindau.de/blog/en/en-post-messages-slack-linux/
Continue reading How to send notifications from Linux fail2ban, ssh auth and other actions to Slack