Skip to content

Instantly share code, notes, and snippets.

@jordanmerrick
Last active December 14, 2015 08:29
Show Gist options
  • Save jordanmerrick/5057900 to your computer and use it in GitHub Desktop.
Save jordanmerrick/5057900 to your computer and use it in GitHub Desktop.
Notification if Dropbox CLI stops running in CentOS
## Dropbox email notification if the daemon has stopped running
## Change name@address.com to the address you want to email.
./dropbox.py status | grep -q 'running' && printf "Dropbox has stopped running on $HOSTNAME.\nLast checked $(date)\n" | mail -s "Dropbox Failure Notification on $HOSTNAME" name@address.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment