Hello everyone,
I noticed that after upgrading zabbix-frontend-php from 3.2.6 to 3.2.7, API event.get requests with "groupids" or "hostids" field return empty:
REQUEST:
{
"jsonrpc": "2.0",
"method": "event.get",
"params": {
"groupids":"10",
"output": "extend",
"time_from":"1497916800",
"time_till":"1503600498",
},
"id": 1,
"auth": "{{token}}"
}
RESPONSE:
{
"jsonrpc": "2.0",
"result": [],
"id": 1
}
If I restore a snapshot with the exact same request on 3.2.6 everything works fine. No groupids or hostids work. Requests without these 2 fields work fine. The "objectid" field works as well.
Were there any known changes to the way event.get works? Does anyone know any workaround?
Thanks in advance
Update:
The same happens in 3.4.1.
Replacing .../includes/classes/api/services/CEvents.php with the one from 3.2.6 works.
The OS is Ubuntu 14.04.5
I noticed that after upgrading zabbix-frontend-php from 3.2.6 to 3.2.7, API event.get requests with "groupids" or "hostids" field return empty:
REQUEST:
{
"jsonrpc": "2.0",
"method": "event.get",
"params": {
"groupids":"10",
"output": "extend",
"time_from":"1497916800",
"time_till":"1503600498",
},
"id": 1,
"auth": "{{token}}"
}
RESPONSE:
{
"jsonrpc": "2.0",
"result": [],
"id": 1
}
If I restore a snapshot with the exact same request on 3.2.6 everything works fine. No groupids or hostids work. Requests without these 2 fields work fine. The "objectid" field works as well.
Were there any known changes to the way event.get works? Does anyone know any workaround?
Thanks in advance
Update:
The same happens in 3.4.1.
Replacing .../includes/classes/api/services/CEvents.php with the one from 3.2.6 works.
The OS is Ubuntu 14.04.5
Comment