Authored by jack

增加线程异常捕获

... ... @@ -80,15 +80,20 @@ public class ZabbixAlarm {
@Override
public void run() {
if (null == hostIdList || 0 == hostIdList.size()) {
return;
}
queryIdToItem(hostIdList);
try {
if (null == hostIdList || 0 == hostIdList.size()) {
return;
}
queryIdToItem(hostIdList);
for (Integer hostId : hostIdList) {
for (Integer hostId : hostIdList) {
queryHistory(hostId);
queryHistory(hostId);
}
} catch (Exception e) {
DEBUG.error(" Zabbix Task Exception:", e);
}
}
}
... ...