trigger_get
Retrieve triggers from Zabbix based on filters like host, group, severity, or description. Get details on problem conditions and their current state.
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.
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 | |
| search | No | Dictionary with search criteria like {'description': 'CPU'}. | |
| hostids | No | List of host IDs to get triggers from. | |
| groupids | No | List of group IDs to get triggers from hosts in those groups. | |
| only_true | No | Only return triggers in problem state. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| triggerids | No | List of trigger IDs to get. If empty, returns all triggers. | |
| templateids | No | List of template IDs to get triggers from those templates. | |
| 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 | |||