Look! Up in the Sky! It's...
A really simple alert script runner that sends a Slack webhook message whenever the
status of a user-define command changes. Useful to get alerting up as quickly as possible
in lieu of a more elaborate alerting system - just
docker run and go.
The base image has all nagios plugins installed.
docker pull justinturpin/alertboy
The following environment variables configure alert boy:
COMMAND: The command to execute. This is executed as a shell command so it can be elaborate.
INTERVAL: How frequently to run the alert, in seconds.
WEBHOOK_URL: The webhook url to post to. This url should be compatible with Slack webhook posts.
NAME: A name to attach the alert to.
TIMEOUT: The amount of time to wait for the command to finish before killing it, in seconds. Default is 10 seconds.