Skip to content

Commit

Permalink
modify group monitor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 18, 2017
1 parent 6950279 commit e2c7dc3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ void sendMinQueueMessages(Long queueLength){
MonitorMessagesEntity messagesEntity = gson.fromJson(queueData, MonitorMessagesEntity.class);
sendMonitorMessages(messagesEntity);
} catch (Exception e) {
e.printStackTrace();
logger.error("发送报警失败:", e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ public ResponseVo configureSave(MonitorConfigureEntity entity, HttpServletReques
MonitorConfigureEntity configureEntity = configureService.findById(entity.getConfigureId(), MonitorConfigureEntity.class);
hosts = configureEntity.getHosts().split(",");
// 删除老的机器的监控配置
CONFIGURE_UTIL.deleteOldConfigure(entity.getConfigureId() + "", hosts);
CONFIGURE_UTIL.deleteOldConfigure(String.valueOf(entity.getConfigureId()), hosts);
configureService.update(entity);
} else {
List<MonitorConfigureEntity> r = configureService.getDataList(null, "selectMaxId");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.asura.resource.service.*;
import com.asura.util.*;
import com.asura.util.network.ThreadPing;
import org.apache.logging.log4j.core.jmx.Server;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit e2c7dc3

Please sign in to comment.