template_get
Get Zabbix templates for standardized monitoring. Search by name, ID, or group, and include linked hosts or macros to apply consistent monitoring across servers.
Instructions
Get templates from Zabbix.
Templates are reusable collections of items, triggers, and graphs that can be applied to hosts. They standardize monitoring across multiple servers with the same role.
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 | Substring search in template name. Matches partial names like 'Linux' finds 'Linux Server Template'. | |
| hostids | No | ||
| groupids | No | ||
| sortfield | No | Field to sort by. | |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| select_tags | No | If true, include the tags for the templates (selectTags=extend). | |
| templateids | No | List of template IDs to get. If empty, returns all templates. Find template IDs with a search or from host associations. | |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| select_hosts | No | If true, include the hosts that are linked to the templates (selectHosts=extend). | |
| select_groups | No | If true, include the template groups the templates belong to (selectGroups=extend). | |
| select_macros | No | If true, include the macros for the templates (selectMacros=extend). | |
| select_templates | No | If true, include the templates that are linked to these templates directly (selectTemplates=extend). | |
| template_name_contains | No | Shortcut to search for templates by name (constructs search={'host': template_name_contains}). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||