item_get
Retrieve monitoring metrics from Zabbix by filtering on hosts, groups, templates, or search criteria. Returns item details and optionally associated hosts, tags, or triggers.
Instructions
Get items (metrics) from Zabbix.
Items are the data sources in Zabbix - they define what metrics are collected and how (protocol, interval, etc.). Each item produces a stream of values over time.
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 {'name': 'CPU'} for substring matching. | |
| hostids | No | List of host IDs to get items from. Filters items by host. | |
| itemids | No | List of item IDs to get. If empty, returns all items. | |
| groupids | No | List of group IDs to get items from hosts in those groups. | |
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| select_tags | No | If true, include the tags for each item in the response (selectTags=extend). | |
| templateids | No | List of template IDs to get items from those templates. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts each item belongs to in the response (selectHosts=extend). | |
| filter_params | No | Additional filter parameters for advanced filtering. | |
| select_triggers | No | If true, include the triggers for each item in the response (selectTriggers=extend). | |
| item_key_contains | No | Shortcut to search for items by key (constructs search={'key_': item_key_contains}). | |
| item_name_contains | No | Shortcut to search for items by name (constructs search={'name': item_name_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||