Authored by jack

修改告警格式

@@ -41,7 +41,7 @@ import java.util.concurrent.ThreadFactory; @@ -41,7 +41,7 @@ import java.util.concurrent.ThreadFactory;
41 @EnableScheduling 41 @EnableScheduling
42 public class ZabbixAlarm { 42 public class ZabbixAlarm {
43 43
44 - private static String ALARMTEMPLATE = "时间:%s,ip:%s,CPU使用率:%.2f\'%\',可用内存/总内存(MB):%s,输入带宽:%.2fMbps,输出带宽:%.2fMbps"; 44 + private static String ALARMTEMPLATE = "时间:%s,ip:%s,CPU使用率:%.2f%,可用内存/总内存(MB):%s,输入带宽:%.2fMbps,输出带宽:%.2fMbps";
45 45
46 public static final Logger DEBUG = LoggerFactory.getLogger(ZabbixAlarm.class); 46 public static final Logger DEBUG = LoggerFactory.getLogger(ZabbixAlarm.class);
47 47