Skip to content

Instantly share code, notes, and snippets.

@STRML STRML/gist:b2298b714fcbfcca44de Secret
Created May 26, 2015

Embed
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
You can’t perform that action at this time.