Periodically checks root (/) free space and notifies your Slack channel.
Run options:
SPACE_LIMIT - int (GB)
PERIOD_UNITS - str (seconds/minutes/hours/days)
CHECK_PERIOD - int
INSTANCE_ID - str - instance/server identifier to distinguish it in Slack reports
DRYRUN - if set - skip slack credentials check and don't really
send out anything, just print to stdout.
docker run --restart=unless-stopped -e SLACK_BOT_TOKEN=... -e SLACK_CHANNEL=... -e SPACE_LIMIT=... -e CHECK_PERIOD=... -e PERIOD_UNITS=... -e INSTANCE_ID=... -e DRYRUN=true scythargon/simple-notify
(install python requirements)
(tested on Python 3.6.9)
SLACK_BOT_TOKEN=... SLACK_CHANNEL=... SPACE_LIMIT=... CHECK_PERIOD=... PERIOD_UNITS=... DRYRUN=true ./main.py