#!/bin/bash
status=$(sh  mddpwd/olapserver/bin/start.sh status)
dateTime=$(date +%Y-%m-%d)
if [ $status -eq 1 ];then
    echo "check on $dateTime $(date +%H):$(date +%M):$(date +%S) ,olap server status is started." > insdir/olapserver/olaplogs/server/check.log
    exit 0
else
    echo "check on $dateTime $(date +%H):$(date +%M):$(date +%S) ,olap server had been stopped." >  insdir/olapserver/olaplogs/server/check.log
    exit 1
fi

