Authored by zhangmingm

修改getSnmpState方法,当ping通的情况下才检查连接状态。

... ... @@ -75,6 +75,7 @@ public class CollWindows implements CollWindowsMBean {
String ip=params.get("IP");
if(!StringUtils.isEmpty(ip)){
String result=server.getPingResultByIp(ip);
log.info("@@@@@###### getSnmpState ping result="+ result +"###$$$$$$$$$$%%%%%%%%%%");
if(!StringUtils.isEmpty(result) && "UP".equals(result)){
String kpiId="FM-00-10-001-998"; // Windows 设备登录状态
ParamterBean bean =new ParamterBean();
... ...