...
|
...
|
@@ -108,6 +108,8 @@ public class CollLinuxHost implements CollLinuxHostMBean { |
|
|
*/
|
|
|
public Vector getPing(HashMap params) {
|
|
|
Vector<TblATO_KPIDETAIL> v=new Vector<TblATO_KPIDETAIL>();
|
|
|
String isPing = params.get("isPing")+""; // frank 2017-05-19 添加。Y进行ping操作,N不执行
|
|
|
if("Y".equals(isPing)){
|
|
|
String ip=params.get("IP_ADDR")+"";
|
|
|
if(!StringUtils.isEmpty(ip)){
|
|
|
String connectStatCode="FM-00-10-001-999"; // linux 主机连接状态
|
...
|
...
|
@@ -139,6 +141,7 @@ public class CollLinuxHost implements CollLinuxHostMBean { |
|
|
}
|
|
|
v.add(kpidetail);
|
|
|
}
|
|
|
}
|
|
|
return v;
|
|
|
|
|
|
}
|
...
|
...
|
@@ -153,8 +156,6 @@ public class CollLinuxHost implements CollLinuxHostMBean { |
|
|
public Vector getSSH(HashMap params) {
|
|
|
Vector<TblATO_KPIDETAIL> v=new Vector<TblATO_KPIDETAIL>();
|
|
|
String ip=params.get("IP_ADDR")+"";
|
|
|
String result=server.getPingResultByIp(ip);
|
|
|
if(!StringUtils.isEmpty(result) && "UP".equals(result)){
|
|
|
String loginStatCode="FM-00-10-001-998"; // linux 主机登录状态
|
|
|
ParamterBean bean =new ParamterBean();
|
|
|
String tempPort=params.get("PROTOCOL_PORT")+"";
|
...
|
...
|
@@ -188,7 +189,6 @@ public class CollLinuxHost implements CollLinuxHostMBean { |
|
|
e.printStackTrace();
|
|
|
}
|
|
|
v.add(kpidetail);
|
|
|
}
|
|
|
return v;
|
|
|
}
|
|
|
|
...
|
...
|
|