zabbix_host_create
Add a new host to Zabbix monitoring by providing host groups and interfaces, with optional templates, macros, and TLS configuration.
Instructions
Creates a new host in Zabbix with specified groups, interfaces, and optional templates/macros.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Technical name of the host (e.g., srv-app-01). | |
| name | No | Visible name of the host. Defaults to technical name if not provided. | |
| groups | Yes | Array of host group objects to assign this host to. Each object must have "groupid". | |
| macros | No | Array of host macros (UserMacros). | |
| status | No | Host status: 0 (monitored), 1 (unmonitored). | |
| tls_psk | No | PSK value (write-only). | |
| templates | No | Array of template objects to link to the host. Each object must have "templateid". | |
| interfaces | Yes | Array of interface objects for the host. | |
| tls_accept | No | Connections FROM host: 1-No enc, 2-PSK, 4-Cert (bitmask). | |
| tls_issuer | No | ||
| description | No | Host description. | |
| tls_connect | No | Connections TO host: 1-No enc, 2-PSK, 4-Cert. | |
| tls_subject | No | ||
| proxy_hostid | No | ID of the proxy that monitors the host. Use '0' if monitored by server. | |
| inventory_mode | No | Host inventory mode: -1 (disabled), 0 (manual), 1 (automatic). | |
| tls_psk_identity | No |