event_get
Retrieve Zabbix events to identify state changes, including trigger problems and recoveries. Filter by hosts, groups, time range, or acknowledgement status to monitor alerts and support incident response.
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 matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response. | |
| 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. A deterministic sort is required for paging to be consistent. | eventid |
| 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 | |||