Skip to content

Instantly share code, notes, and snippets.

@Scriptiee
Created March 31, 2015 14:20
Show Gist options
  • Save Scriptiee/a224f5e5011891e95d95 to your computer and use it in GitHub Desktop.
Save Scriptiee/a224f5e5011891e95d95 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# check for masternode down v1
# By Scriptiee
#
export HOME=/home/$user # replace $user with the user that runs the darkcoind
if $(/path/to/dashd getbalance 0 2>&1 | grep -q error)
then
echo "Address Immediately" | mail your@emailaddress -s "********MASTERNODE DOWN!!********"
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment