[EN] Post messages to slack from linux

Firstly you need to create webhook url in slack. How to do it you can find at https://www.programmableweb.com/news/how-to-integrate-webhooks-slack-api/how-to/2015/10/20

Secondly you need for example a bash script. My version you can find in gist:

For comfort usage I have copied it to bin folder

Now you cant access  this script anywhere by typing :

Practically you can use it to get info about errors or notifications. Maybe you want to get notification about successfully database backup.

Personaly I’m using it for notifying me if any of monitored website is offline – http://mindau.de/blog/en/simple-way-monitor-websites-linux/

One thought on “[EN] Post messages to slack from linux”

Leave a Reply

Your email address will not be published. Required fields are marked *