Created
March 31, 2015 14:20
-
-
Save Scriptiee/a224f5e5011891e95d95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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