腾讯开放平台告警短信设置

[root@VM_163_107 /data/script/shell]# vim moni_pid.sh
#!/bin/sh
#set -x
pid1=`ps -ef|grep QD|grep -v grep |awk '{print $14}'|grep QWorld`
pid2=`ps -ef|grep QD|grep -v grep |awk '{print $14}'|grep QDBProxy`
pid3=`ps -ef|grep QD|grep -v grep |awk '{print $14}'|grep QGameServer`
pid4=`ps -ef|grep QD|grep -v grep |awk '{print $14}'|grep QGateway`
pid5=`ps -ef|grep QD|grep -v grep |awk '{print $14}'|grep QCommunity`
DC_PATH=/usr/local/services/CloudDCAgent_L5-1.0/alarm
if [ -z $pid1 ]
then
        $DC_PATH/cloud_alarm 100697808 "the rpgserver is down" -o rpgserver
        echo "done"
else
        echo "nothing to do"
fi
#set +x


你可能感兴趣的:(open)