需要在Zabbix 3.2 / 3.4 API调用中获取触发器描述以“按时间检索事件”

时间:2018-12-14 06:53:16

标签: java php api triggers zabbix

在Zabbix 3.2 / 3.4 API中,“按时间段检索事件”调用未在响应中给出触发器描述,但在Zabbix 4.2 API中调用。

此处的链接显示了version 3.2version 4.2的API(按时间段检索事件)响应差异 我在以下查询中使用了邮递员客户端:

{
"jsonrpc": "2.0",
"method": "event.get",
"params": {
    "output": "extend",
    "time_from": "1349797228",
    "time_till": "1350661228",
    "sortfield": ["clock", "eventid"],
    "sortorder": "desc"
},
"auth": "token",
"id": 1

}

对于4.2,响应中带有“名称”(这是触发器描述),但在3.2 / 3.4中则没有

{"result":[{"name": "Less than 25% free in the history cache",....}]}

对于Zabbix 3.2 / 3.4,有没有办法在“按时间段检索事件”中获取触发器描述,或者有任何自定义API的机会?

0 个答案:

没有答案