host_create
Quickly add a new host to Zabbix monitoring by specifying host name, groups, interfaces, and templates. Configure inventory mode and status for precise host management.
Instructions
Create a new host in Zabbix.
Args:
host: Host name
groups: List of host groups (format: [{"groupid": "1"}])
interfaces: List of host interfaces
templates: List of templates to link (format: [{"templateid": "1"}])
inventory_mode: Inventory mode (-1=disabled, 0=manual, 1=automatic)
status: Host status (0=enabled, 1=disabled)
Returns:
str: JSON formatted creation result
Input Schema
Name | Required | Description | Default |
---|---|---|---|
groups | Yes | ||
host | Yes | ||
interfaces | Yes | ||
inventory_mode | No | ||
status | No | ||
templates | No |
Input Schema (JSON Schema)
{
"properties": {
"groups": {
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"title": "Groups",
"type": "array"
},
"host": {
"title": "Host",
"type": "string"
},
"interfaces": {
"items": {
"additionalProperties": true,
"type": "object"
},
"title": "Interfaces",
"type": "array"
},
"inventory_mode": {
"default": -1,
"title": "Inventory Mode",
"type": "integer"
},
"status": {
"default": 0,
"title": "Status",
"type": "integer"
},
"templates": {
"anyOf": [
{
"items": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Templates"
}
},
"required": [
"host",
"groups",
"interfaces"
],
"type": "object"
}