Skip to content

Instantly share code, notes, and snippets.

@cmeisinger
Created February 17, 2014 15:26
Show Gist options
  • Save cmeisinger/9052613 to your computer and use it in GitHub Desktop.
Save cmeisinger/9052613 to your computer and use it in GitHub Desktop.
DOWNHOSTS=$(salt-run manage.down)
for host in $DOWNHOSTS
do
if [ -n $host ]
then
/bin/echo "SALTCHECK $host is not responding to salt" | /bin/mail -s "SALTCHECK: $host is not responding to salt" [email protected]
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment