Hi All,
I'm new to Zabbix API's and trying to find a way to get some important information from the API.
Requirement :
I' only need to get all the events that are in problem status for a given time period but not the events that are cleared from problem to ok status.
I have tried event.get method and alert.get method both returning problem events that are already cleared in this time period ,
Appreciate you support on this
This is an example response body Im using to filter out data
{
"jsonrpc": "2",
"method": "event.get",
"params": {
"output": "extend",
"time_from": "1622228502.076263",
"time_till": "1622444502.076263",
"sortfield": ["clock", "eventid"],
"sortorder": "desc"
},
"auth": "xxxxx",
"id": 1
This return problem event id's that are cleared in that time period. what I need is only problem events not clear at the time. current problems not cleard
I'm new to Zabbix API's and trying to find a way to get some important information from the API.
Requirement :
I' only need to get all the events that are in problem status for a given time period but not the events that are cleared from problem to ok status.
I have tried event.get method and alert.get method both returning problem events that are already cleared in this time period ,
Appreciate you support on this
This is an example response body Im using to filter out data
{
"jsonrpc": "2",
"method": "event.get",
"params": {
"output": "extend",
"time_from": "1622228502.076263",
"time_till": "1622444502.076263",
"sortfield": ["clock", "eventid"],
"sortorder": "desc"
},
"auth": "xxxxx",
"id": 1
This return problem event id's that are cleared in that time period. what I need is only problem events not clear at the time. current problems not cleard