Commit e948f3dc authored by Swen Brueseke's avatar Swen Brueseke

Update check_rsnapshot.sh

parent c5691cba
......@@ -37,12 +37,12 @@ LOGDAY="$(echo ${LASTLINE} | cut -dT -f1 | cut -c 2-)"
# check if last daily was successfull and LOGDAY is DAY
if [[ $LASTLINE =~ "completed successfully" && $DAY == $LOGDAY ]]; then
echo "OK - daily completed successfully $LOGDAY"
echo "OK - $LASTLINE"
exit 0
elif [[ $LASTLINE =~ "WARNING" && $DAY == $LOGDAY ]]; then
echo "WARNING - daily completed, but with some warnings $LOGDAY"
echo "WARNING - $LASTLINE"
exit 1
else
echo "CRITICAL - daily did not finish"
echo "CRITICAL - $LASTLINE"
exit 2
fi
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment