Skip to content

Instantly share code, notes, and snippets.

@STRML
Created May 26, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save STRML/b2298b714fcbfcca44de to your computer and use it in GitHub Desktop.
Save STRML/b2298b714fcbfcca44de to your computer and use it in GitHub Desktop.
#!/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