Please help me to solve this problem: I need to get a list of all unacknowledged problems from Zabbix 5.0.4 via API.
When I make a request like this
{
"jsonrpc": "2.0",
"method": "problem.get",
"params": {
"severities": ["4", "5"],
"acknowledged": "0",
"suppressed": "0",
"countOutput": "true"
},
"auth": "auth_token",
"id": 1
}
I get in response
{
"jsonrpc": "2.0",
"result": "424",
"id": 1
}
but when I go to the page with a list of problems in the browser, for example, at
https://localhost/zabbix.php?action=problem.view&filter_show=3&filter_application=&filter_name=&filter_severities%5B4%5D=4&filter_severities%5B5%5D=5&filter_inventory%5B0%5D%5Bfield%5D=type&filter_inventory%5B0%5D%5Bvalue%5D=&filter_evaltype=0&filter_tags%5B0%5D%5Btag%5D=&filter_tags%5B0%5D%5Boperator%5D=0&filter_tags%5B0%5D%5Bvalue%5D=&filter_show_tags=3&filter_tag_name_format=0&filter_tag_priority=&filter_show_opdata=0&filter_unacknowledged=1&filter_set=1
I get only 10 problems in response, instead of 400+ in response from API. Why is that? What am I doing wrong? Tell me please.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…