Event Get
event_getRetrieve Zabbix events to track trigger state changes, problem and recovery alerts, with filters for time, hosts, triggers, acknowledgement, and suppression.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "event_get"
}
}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. An empty list matches none. | |
| eventids | No | List of event IDs to get. Omit to return all events; an empty list matches none. | |
| groupids | No | List of host group IDs to get events from. An empty list matches none. | |
| objectids | No | List of trigger IDs to get events from. An empty list matches none. | |
| 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 | |||