Tried to get values by list keys

时间:2017-12-18 08:00:47

标签: zabbix

Tried to get values by list keys

wrote Zabbix API request

DateFormat originalFormat = new SimpleDateFormat("MM/yy", Locale.ENGLISH);
DateFormat targetFormat = new SimpleDateFormat("MM/yyyy");
Date date = originalFormat.parse("09/19");

BUT returned null.

How to solve this problem?

1 个答案:

答案 0 :(得分:0)

您需要将key作为数组:

['vfs.fs.size[/data,free]','system.cpu.util.usage']