Authored by zhangmingm

修改getPingStatus方法。

... ... @@ -54,11 +54,6 @@ public class CollMySQL implements CollMySQLMBean {
public Vector<TblATO_KPIDETAIL> getPingStatus(HashMap<String, String> params) {
try {
CollMySQLBySql collector = new CollMySQLBySql();
logger.info("***********************************");
logger.info("***********************************");
logger.info("***********************************");
logger.info("***********************************");
logger.info("********** CollMySQL execute getPingStatus *************************");
return collector.getPingStatus(params);
} catch (Exception e) {
logger.error("Exception while getPingStatus", e);
... ...
... ... @@ -260,9 +260,11 @@ public class CollMySQLBySql {
int end=url.lastIndexOf(":");
String ipAddr=url.substring(start+2,end);
log.info(" ***/////////////////// ipAddr="+ipAddr+"//////////////////");
CheckConnectionState server=new CheckConnectionState();
String unitId ="10-11-35-10" + ":" + deviceId + "-SYS";
String kpiId="FM-00-10-001-999"; // mysql 主机连接状态
CheckConnectionState server=new CheckConnectionState();
String unitId = KBP_CLASS + "-10" + ":" + deviceId + "-SYS";
ParamterBean bean=new ParamterBean();
bean.setType("mysql");
bean.setDEVICE_IP(ipAddr);
... ... @@ -271,7 +273,7 @@ public class CollMySQLBySql {
TblATO_KPIDETAIL kpidetail=new TblATO_KPIDETAIL();
try {
kpidetail.setUNIT_ID(unitId);
kpidetail.setKPI_ID("FM-00-11-001-999");
kpidetail.setKPI_ID(kpiId);
kpidetail.setCLL_TIME(new Date());
kpidetail.setKPI_VALUE(stat);
} catch (ParseException e) {
... ...