Skip to content

Instantly share code, notes, and snippets.

View jasuca's full-sized avatar

Jacob Sunol jasuca

View GitHub Profile

Add this script line to alert M/Monit (https://<M/MONIT_URL>/admin/alerts/)

/path/to/ruby /path/to/post_to_slack.rb --monit-host $MONIT_HOST --service $MONIT_SERVICE --status {succeed, failed, changed} --text "$MONIT_DESCRIPTION"