Hi
Wwe are using Zabbix 3.0
When asking for triggers with problems we want to get lastEvent
In our case we got trigger with problem but with no lastEvent
Zabbix return no lastEvent as an empty array. We expect an object. We get:
{
"jsonrpc": "2.0",
"result": [
{
"triggerid": "19868",
"expression": "{20089} > 1.0",
"description": "Check if too much disk space is used",
"url": "",
"status": "0",
"value": "1",
"priority": "4",
"lastchange": "1483229759",
"comments": "",
"error": "Agent is unavailable.",
"templateid": "0",
"type": "0",
"state": "1",
"flags": "0",
"lastEvent": [
]
}
],
"id": 564643980
}
In normal cases we get lastEvent as an object.
Is it a bug In Zabbix API ?
Wwe are using Zabbix 3.0
When asking for triggers with problems we want to get lastEvent
In our case we got trigger with problem but with no lastEvent
Zabbix return no lastEvent as an empty array. We expect an object. We get:
{
"jsonrpc": "2.0",
"result": [
{
"triggerid": "19868",
"expression": "{20089} > 1.0",
"description": "Check if too much disk space is used",
"url": "",
"status": "0",
"value": "1",
"priority": "4",
"lastchange": "1483229759",
"comments": "",
"error": "Agent is unavailable.",
"templateid": "0",
"type": "0",
"state": "1",
"flags": "0",
"lastEvent": [
]
}
],
"id": 564643980
}
In normal cases we get lastEvent as an object.
Is it a bug In Zabbix API ?
Comment