...
|
...
|
@@ -104,6 +104,8 @@ public class ZabbixAlarm { |
|
|
|
|
|
int executorSize = allIdList.size() / 100 + 1;
|
|
|
|
|
|
DEBUG.info("Start to watch all vm size {}....", allIdList.size());
|
|
|
|
|
|
ExecutorService executor = Executors.newFixedThreadPool(executorSize, new ThreadFactory() {
|
|
|
@Override
|
|
|
public Thread newThread(Runnable r) {
|
...
|
...
|
@@ -136,6 +138,8 @@ public class ZabbixAlarm { |
|
|
}
|
|
|
|
|
|
executor.shutdown();
|
|
|
|
|
|
DEBUG.info("End to watch all vm size {}....", allIdList.size());
|
|
|
}
|
|
|
|
|
|
//查询所有host信息
|
...
|
...
|
|