item_create
Create new monitoring items in Zabbix by specifying name, key, host ID, type, value type, update interval, units, and description. Returns JSON formatted creation result.
Instructions
Create a new item in Zabbix.
Args:
name: Item name
key_: Item key
hostid: Host ID
type: Item type (0=Zabbix agent, 2=Zabbix trapper, etc.)
value_type: Value type (0=float, 1=character, 3=unsigned int, 4=text)
delay: Update interval
units: Value units
description: Item description
Returns:
str: JSON formatted creation result
Input Schema
Name | Required | Description | Default |
---|---|---|---|
delay | No | 1m | |
description | No | ||
hostid | Yes | ||
key_ | Yes | ||
name | Yes | ||
type | Yes | ||
units | No | ||
value_type | Yes |
Input Schema (JSON Schema)
{
"properties": {
"delay": {
"default": "1m",
"title": "Delay",
"type": "string"
},
"description": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Description"
},
"hostid": {
"title": "Hostid",
"type": "string"
},
"key_": {
"title": "Key",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"type": {
"title": "Type",
"type": "integer"
},
"units": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Units"
},
"value_type": {
"title": "Value Type",
"type": "integer"
}
},
"required": [
"name",
"key_",
"hostid",
"type",
"value_type"
],
"type": "object"
}