...
|
...
|
@@ -141,9 +141,9 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService |
|
|
redisMonitor.setParamMonitor(paramMonitor.toString());
|
|
|
}
|
|
|
}else{
|
|
|
twemproxyAlarmList.add(obj.getMoHostIp()+":"+Integer.valueOf(ports[0]+","));
|
|
|
twemproxyAlarmList.add(obj.getMoHostIp()+":"+obj.getMoTags()+",");
|
|
|
redisMonitor.setIsFailed(0);
|
|
|
redisMonitor.setParamMonitor(obj.getMoHostIp()+":"+Integer.valueOf(ports[0]));
|
|
|
redisMonitor.setParamMonitor(obj.getMoHostIp()+":"+obj.getMoTags());
|
|
|
}
|
|
|
redisMonitor.setNodeFrom(redisTweproxyMap.get(obj.getMoTypeId()));
|
|
|
redisMonitor.setNodeTo(obj.getMoHostIp()+":"+ports[1]);
|
...
|
...
|
@@ -237,6 +237,7 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService |
|
|
for(String str:twemproxyAlarmList){
|
|
|
alrarmMsg.append(str);
|
|
|
}
|
|
|
alrarmMsg.append("失败;");
|
|
|
}
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(redisAlarmList)){
|
...
|
...
|
@@ -244,6 +245,7 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService |
|
|
for(String str:redisAlarmList){
|
|
|
alrarmMsg.append(str);
|
|
|
}
|
|
|
alrarmMsg.append("失败;");
|
|
|
}
|
|
|
|
|
|
if(!CollectionUtils.isEmpty(slaveAlarmList)){
|
...
|
...
|
@@ -251,10 +253,12 @@ public class RedisMonitorHandleServiceImpl implements IRedisMonitorHandleService |
|
|
for(String str:slaveAlarmList){
|
|
|
alrarmMsg.append(str);
|
|
|
}
|
|
|
alrarmMsg.append("失败;");
|
|
|
}
|
|
|
|
|
|
log.info("sms redis start info {}",alrarmMsg.toString());
|
|
|
if(StringUtils.isNotBlank(alrarmMsg.toString())) {
|
|
|
alrarmMsg.append("请您及时查看!");
|
|
|
alarmMsgService.sendSms("redis", alrarmMsg.toString(), snsMobileConfig.getBaseMobile());
|
|
|
}
|
|
|
}
|
...
|
...
|
|