Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/bin/bash
# M/Monit alert config to post to slack webhook.
curl \
-X POST \
--data-urlencode "payload={\"channel\":\"#alerts\", \"username\":\"mmonit\",\"text\":\"[$MONIT_HOST] $MONIT_SERVICE - $MONIT_DESCRIPTION\" }" \
https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment