Trigger Get
trigger_getRetrieve Zabbix triggers to identify problem conditions, filter by host, group, template, severity, or description, and page results for monitoring analysis.
Instructions
Get triggers from Zabbix.
Triggers are rules that define when a problem occurs based on item values. They evaluate expressions against collected metrics and transition between problem and normal states.
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": "trigger_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 | |
| search | No | Dictionary with search criteria like {'description': 'CPU'}. | |
| hostids | No | List of host IDs to get triggers from. An empty list matches none. | |
| groupids | No | List of group IDs to get triggers from hosts in those groups. An empty list matches none. | |
| only_true | No | Only return triggers in problem state. | |
| sortfield | No | Field to sort by. A deterministic sort is required for paging to be consistent. | triggerid |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| triggerids | No | List of trigger IDs to get. Omit to return all triggers; an empty list matches none. | |
| templateids | No | List of template IDs to get triggers from those templates. An empty list matches none. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| min_severity | No | Minimum severity (0-5). | |
| select_hosts | No | If true, include the hosts each trigger belongs to in the response (selectHosts=extend). | |
| filter_params | No | Additional filter parameters for advanced filtering. | |
| description_contains | No | Shortcut to search for triggers by description (name) (constructs search={'description': description_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||