|
@@ -498,8 +498,10 @@ class BaseDataMonitor():
|
|
|
process_count = 0
|
|
|
if int(process_count)==0:
|
|
|
atAll = True
|
|
|
- # if int(process_count)>0 and int(process_count)<100:
|
|
|
- # self.cmd_execute("ps -ef | grep dumplicate | grep -v grep|cut -c 9-15|xargs kill -9")
|
|
|
+ _cmd = "echo `tail %s -c 10000k` > %s"%(flow_dumplicate_log_path,flow_dumplicate_log_path)
|
|
|
+ self.cmd_execute(_cmd)
|
|
|
+ if int(process_count)>0 and int(process_count)<100:
|
|
|
+ self.cmd_execute("ps -ef | grep dumplicate | grep -v grep|cut -c 9-15|xargs kill -9")
|
|
|
_msg = "数据流报警:待去重公告数为:%d,最近十分钟去重数为:%s"%(total_count,str(process_count))
|
|
|
sentMsgToDD(_msg,ACCESS_TOKEN_DATAWORKS,atAll=atAll)
|
|
|
# sendEmail(smtp_host,smtp_username,smtp_password,self.recieviers,_msg)
|