shell 编程 之程序监控

echo "xxxxxxx服务进程检查(avis、OM、TBT、TSS、SCS、CPS)xxxxxxxx"
echo "xxxxxxxxAVIS进程检查xxxxxxxx"
RVD="`ps aux | grep -i avis  |grep -v grep |wc -l`"
if [ $RVD -ge "1" ]; then
echo "RVD服务启动正常"
ps aux | grep -i avis  |grep -v grep
else
echo "RVD进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxTBT进程检查¥xxxxxxxx"
TBT="`ps aux | grep -i ticBytic_ne| grep -v dts2 |grep -v grep |wc -l`"
if [ $TBT -ge "1" ]; then
echo "TBT服务启动正常"
ps aux | grep -i ticBytic_ne | grep -v dts2 |grep -v grep
else
echo "TBT进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxOM进程检查¥xxxxxxxx"
OM="`ps aux | grep -i odr_mgr| grep -v dts2 |grep -v grep |wc -l`"
if [ $OM -ge "1" ]; then
echo "OM服务启动正常"
ps aux | grep -i odr_mgr | grep -v dts2 |grep -v grep
else
echo "OM进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxTSS_1进程检查¥xxxxxxxx"
TSS="`ps aux | grep -i om_tran_consumer| grep -v dts2 |grep -v grep |wc -l`"
if [ $TSS -ge "1" ]; then
echo "TSS_1服务启动正常"
ps aux | grep -i om_tran_consumer | grep -v dts2 |grep -v grep
else
echo "TSS_1进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxTSS_2进程检查¥xxxxxxxx"
TSS="`ps aux | grep -i om_tran_store_server| grep -v dts2 |grep -v grep |wc -l`"
if [ $TSS -ge "1" ]; then
echo "TSS_2服务启动正常"
ps aux | grep -i om_tran_store_server | grep -v dts2 |grep -v grep
else
echo "TSS_2进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxCPS进程检查¥xxxxxxxx"
CPS="`ps aux | grep -i calp_protocol_server| grep -v dts2 |grep -v grep |wc -l`"
if [ $CPS -ge "1" ]; then
echo "CPS服务启动正常"
ps aux | grep -i calp_protocol_server| grep -v dts2 |grep -v grep
else
echo "CPS进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxSCS_1进程检查¥xxxxxxxx"
SCS="`ps aux | grep -i strategy_controller_server_gui| grep -v dts2 |grep -v grep |wc -l`"
if [ $SCS -ge "1" ]; then
echo "SCS_1服务启动正常"
ps aux | grep -i strategy_controller_server_gui | grep -v dts2 |grep -v grep
else
echo "SCS_1进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxSCS_2进程检查¥xxxxxxxx"
SCS="`ps aux | grep -i strategy_controller_server_monitor| grep -v dts2 |grep -v grep |wc -l`"
if [ $SCS -ge "1" ]; then
echo "SCS_2服务启动正常"
ps aux | grep -i strategy_controller_server_monitor | grep -v dts2 |grep -v grep
else
echo "SCS_2进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxSSCH进程检查¥xxxxxxxx"
SSCH="`ps aux | grep -i strategy_scheduler| grep -v dts2 |grep -v grep |wc -l`"
if [ $SSCH -ge "1" ]; then
echo "SSSCH服务启动正常"
ps aux | grep -i strategy_scheduler | grep -v dts2 |grep -v grep
else
echo "SSCH进程程动失败!!请即时检查失败原因 !!"
fi


echo "xxxxxxxxWDC进程检查¥xxxxxxxx"
WDC="`ps aux | grep -i WDC |grep -v grep |wc -l`"
if [ $WDC -eq "12" ]; then
echo "WDC服务启动正常"
ps aux | grep -i WDC | grep -v dts2 |grep -v grep
else
echo "WDC进程程动失败!!请即时检查失败原因 !!"
fi




echo "xxxxxxxxInternalLM进程检查¥xxxxxxxx"
LM="`ps aux | grep -i internal_lm |grep -v grep |wc -l`"
if [ $LM -ge "1" ]; then
echo "LM服务启动正常"
ps aux | grep -i internal_lm  |grep -v grep
else
echo "LM进程程动失败!!请即时检查失败原因 !!"
fi
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值