event_get
Retrieve monitoring events from Zabbix, including problem and recovery events, with filters for time, hosts, groups, triggers, and acknowledgment status.
Instructions
Get events from Zabbix.
Events represent state changes in the system - when triggers transition from normal to problem and back, or recovery events. Each event has a timestamp, trigger, and can be acknowledged to show operators have seen the alert.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of results to skip (for pagination). Requires sortfield to be set. | |
| output | No | extend | |
| hostids | No | List of host IDs to get events from. | |
| eventids | No | List of event IDs to get. If empty, returns all events. | |
| groupids | No | List of host group IDs to get events from. | |
| objectids | No | List of trigger IDs to get events from. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| time_from | No | Unix timestamp to filter events from this time onwards. | |
| time_till | No | Unix timestamp to filter events up to this time. | |
| suppressed | No | If false, return only unsuppressed events. If true, return only suppressed events. | |
| select_tags | No | If true, include the tags for each event in the response (selectTags=extend). | |
| acknowledged | No | If false, return only unacknowledged events. If true, return only acknowledged events. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts each event belongs to in the response (selectHosts=extend). | |
| select_related_object | No | If true, include the related object (e.g., trigger) in the response (selectRelatedObject=extend). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||