Authored by jack

过滤zabbix输出

... ... @@ -25,7 +25,7 @@ public class HistoryRequest extends ZabbixRequest {
public static class Params {
String hostids;
String output = "extend";
String[] output = {"itemid", "value"};
Integer history = 3;
... ...
... ... @@ -136,7 +136,7 @@ public class ZabbixTask implements Callable {
response = zabbixHttpComp.sendRequest(HistoryRequest.buildRequest(entry.getKey(), itemIdList, 3));
}
DEBUG.info("Found zabbix item response {} in items {}", response, itemIdList);
DEBUG.info("Found zabbix history response {} in items {}", response, itemIdList);
HistoryResponse historyResponse = null;
... ... @@ -146,7 +146,7 @@ public class ZabbixTask implements Callable {
} catch (IOException e) {
DEBUG.error("Failed to parse zabbix item response {} in items {}", response, itemIdList);
DEBUG.error("Failed to parse zabbix history response {} in items {}", response, itemIdList);
return;
}
... ...