Open deqlz opened 3 years ago
Code:
jparams, err := json.Marshal(params)
os.Stdout.Write(jparams)
Returns:
{"eventids":["2589270"],"object":0,"acknowledged":false}
It has been empirically established that the problem lies in the acknowledged
parameter. If it is set to false
, the event is not found. If it is set to true
, the event is found. Curl
exhibits the same behavior.
The problem is that the acknowledged
parameter is set by default to either true
or false
. And I cannot remove it.
As planned by zabbix api (I guess), if this parameter is set to false
, all events should be returned. If the parameter is set to true
, then only acknowledged events should be returned. But it doesn't work as intended.
I am trying to get an Event with a given event_id from Zabbix. An event with this id exists and is currently active. Connection to Zabbix is successful. Moreover, if I remove the EventIDs filter, it finds more than 600 events. But (!) I cannot access some of them directly from the Zabbix web interface under the same user.
Code:
Out:
Errors:
What could be the problem?
At the same time, everything works correctly from curl:![screenshot](https://user-images.githubusercontent.com/87039567/124657847-b1e0b680-deab-11eb-9557-a1769c586809.PNG)