Created
October 2, 2015 15:15
-
-
Save timhberry/fc53c06fbfce2bba21f5 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 | |
APP=$1 | |
RUNNING=$(dokku ls | grep $APP | awk '{print $4}') | |
if [ "$RUNNING" == "" ]; then | |
echo "CRITICAL - $APP does not exist." | |
exit 2 | |
fi | |
if [ "$RUNNING" == "stopped" ]; then | |
echo "WARNING - $APP is stopped" | |
exit 1 | |
fi | |
echo "OK - $APP is running." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment