template_get
Fetches templates from Zabbix, standardizing items, triggers, and graphs for reuse. Solves inconsistent monitoring by applying consistent configurations across multiple 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 matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response. | |
| 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. A deterministic sort is required for paging to be consistent. | host |
| 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 (selectTemplateGroups=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 | |||