Las plantillas se exportan con muchos objetos relacionados y relaciones entre objetos.
La exportación de plantillas contiene:
Para exportar plantillas, haga lo siguiente:
Dependiendo del formato seleccionado, las plantillas son exportadas a un archivo local con un nombre predeterminado:
Para importar plantillas, haga lo siguiente:
Todos los campos de entrada obligatorios están marcados con un asterisco rojo.
Reglas de importación:
Regla | Descripción |
---|---|
Actualizar existente | Los elementos existentes se actualizarán con los datos tomados del archivo de importación. En caso contrario no se actualizarán. |
Crear nuevo | La importación agregará nuevos elementos utilizando datos del archivo de importación. De lo contrario, no los agregará. |
Eliminar faltantes | La importación eliminará los elementos existentes que no están presentes en el archivo de importación. De lo contrario, no los eliminará. Si se marca Eliminar faltantes para vinculación de plantilla, se desvinculará la vinculación de plantilla existente que no esté presente en el archivo de importación. Desde Zabbix 6.0.13, las entidades (elementos, activadores, gráficos, etc.) heredadas de las plantillas desvinculadas no se eliminarán (a menos que también se seleccione la opción Eliminar faltantes para cada entidad). |
En la siguiente pantalla podrá ver el contenido de la plantilla que está siendo importada. Si se trata de una plantilla nueva, todos los elementos se enumerarán en verde. Si se actualiza una plantilla existente, se mostrarán nuevos elementos de plantilla. resaltados en verde; los elementos de plantilla eliminados se resaltan en rojo; Los elementos que no han cambiado se enumeran sobre un fondo gris.
El menú de la izquierda se puede utilizar para navegar por la lista de cambios. La sección Actualizada resalta todos los cambios realizados en las existentes elementos de plantilla. La sección Agregado enumera nuevos elementos de plantilla. El los elementos de cada sección están agrupados por tipo de elemento; presione en el gris flecha hacia abajo para expandir o contraer el grupo de elementos.
Revise los cambios de la plantilla, luego presione Importar para realizar la importación de la plantilla. Se mostrará un mensaje de éxito o fracaso de la importación en la Interfaz.
Formato de exportación en YAML:
zabbix_export:
version: '6.0'
date: '2021-08-31T12:40:55Z'
groups:
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
templates:
- uuid: 56079badd056419383cc26e6a4fcc7e0
template: VMware
name: VMware
description: |
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/
Template tooling version used: 0.38
templates:
- name: 'VMware macros'
groups:
- name: Templates/Applications
items:
- uuid: 5ce209f4d94f460488a74a92a52d92b1
name: 'VMware: Event log'
type: SIMPLE
key: 'vmware.eventlog[{$VMWARE.URL},skip]'
history: 7d
trends: '0'
value_type: LOG
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Collect VMware event log. See also: https://www.zabbix.com/documentation/6.0/manual/config/items/preprocessing/examples#filtering_vmware_event_log_records'
tags:
- tag: Application
value: VMware
- uuid: ee2edadb8ce943ef81d25dbbba8667a4
name: 'VMware: Full name'
type: SIMPLE
key: 'vmware.fullname[{$VMWARE.URL}]'
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'VMware service full name.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: Application
value: VMware
- uuid: a0ec9145f2234fbea79a28c57ebdb44d
name: 'VMware: Version'
type: SIMPLE
key: 'vmware.version[{$VMWARE.URL}]'
delay: 1h
history: 7d
trends: '0'
value_type: CHAR
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'VMware service version.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: Application
value: VMware
discovery_rules:
- uuid: 16ffc933cce74cf28a6edf306aa99782
name: 'Discover VMware clusters'
type: SIMPLE
key: 'vmware.cluster.discovery[{$VMWARE.URL}]'
delay: 1h
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Discovery of clusters'
item_prototypes:
- uuid: 46111f91dd564a459dbc1d396e2e6c76
name: 'VMware: Status of "{#CLUSTER.NAME}" cluster'
type: SIMPLE
key: 'vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}]'
history: 7d
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'VMware cluster status.'
valuemap:
name: 'VMware status'
tags:
- tag: Application
value: VMware
- uuid: 8fb6a45cbe074b0cb6df53758e2c6623
name: 'Discover VMware datastores'
type: SIMPLE
key: 'vmware.datastore.discovery[{$VMWARE.URL}]'
delay: 1h
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
item_prototypes:
- uuid: 4b61838ba4c34e709b25081ae5b059b5
name: 'VMware: Average read latency of the datastore {#DATASTORE}'
type: SIMPLE
key: 'vmware.datastore.read[{$VMWARE.URL},{#DATASTORE},latency]'
history: 7d
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Amount of time for a read operation from the datastore (milliseconds).'
tags:
- tag: Application
value: VMware
- uuid: 5355c401dc244bc588ccd18767577c93
name: 'VMware: Free space on datastore {#DATASTORE} (percentage)'
type: SIMPLE
key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE},pfree]'
delay: 5m
history: 7d
value_type: FLOAT
units: '%'
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'VMware datastore space in percentage from total.'
tags:
- tag: Application
value: VMware
- uuid: 84f13c4fde2d4a17baaf0c8c1eb4f2c0
name: 'VMware: Total size of datastore {#DATASTORE}'
type: SIMPLE
key: 'vmware.datastore.size[{$VMWARE.URL},{#DATASTORE}]'
delay: 5m
history: 7d
units: B
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'VMware datastore space in bytes.'
tags:
- tag: Application
value: VMware
- uuid: 540cd0fbc56c4b8ea19f2ff5839ce00d
name: 'VMware: Average write latency of the datastore {#DATASTORE}'
type: SIMPLE
key: 'vmware.datastore.write[{$VMWARE.URL},{#DATASTORE},latency]'
history: 7d
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Amount of time for a write operation to the datastore (milliseconds).'
tags:
- tag: Application
value: VMware
- uuid: a5bc075e89f248e7b411d8f960897a08
name: 'Discover VMware hypervisors'
type: SIMPLE
key: 'vmware.hv.discovery[{$VMWARE.URL}]'
delay: 1h
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Discovery of hypervisors.'
host_prototypes:
- uuid: 051a1469d4d045cbbf818fcc843a352e
host: '{#HV.UUID}'
name: '{#HV.NAME}'
group_links:
- group:
name: Templates/Applications
group_prototypes:
- name: '{#CLUSTER.NAME}'
- name: '{#DATACENTER.NAME}'
templates:
- name: 'VMware Hypervisor'
macros:
- macro: '{$VMWARE.HV.UUID}'
value: '{#HV.UUID}'
description: 'UUID of hypervisor.'
custom_interfaces: 'YES'
interfaces:
- ip: '{#HV.IP}'
- uuid: 9fd559f4e88c4677a1b874634dd686f5
name: 'Discover VMware VMs'
type: SIMPLE
key: 'vmware.vm.discovery[{$VMWARE.URL}]'
delay: 1h
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
description: 'Discovery of guest virtual machines.'
host_prototypes:
- uuid: 23b9ae9d6f33414880db1cb107115810
host: '{#VM.UUID}'
name: '{#VM.NAME}'
group_links:
- group:
name: Templates/Applications
group_prototypes:
- name: '{#CLUSTER.NAME} (vm)'
- name: '{#DATACENTER.NAME}/{#VM.FOLDER} (vm)'
- name: '{#HV.NAME}'
templates:
- name: 'VMware Guest'
macros:
- macro: '{$VMWARE.VM.UUID}'
value: '{#VM.UUID}'
description: 'UUID of guest virtual machine.'
custom_interfaces: 'YES'
interfaces:
- ip: '{#VM.IP}'
valuemaps:
- uuid: 3c59c22905054d42ac4ee8b72fe5f270
name: 'VMware status'
mappings:
- value: '0'
newvalue: gray
- value: '1'
newvalue: green
- value: '2'
newvalue: yellow
- value: '3'
newvalue: red
Los valores de las etiquetas de elementos se explican en la siguiente tabla.
Elemento | Propiedad del elemento | Requerido | Tipo | Rango | Descripción |
---|---|---|---|---|---|
templates | - | Elemento raíz para plantillas. | |||
uuid | x | cadena |
Identificador único para esta plantilla. | ||
template | x | cadena |
Nombre de plantilla único. | ||
name | - | cadena |
Nombre de plantilla visible. | ||
description | - | texto |
Descripción de la plantilla. | ||
groups | x | Elemento raíz para grupos de hosts de plantilla. | |||
uuid | x | cadena |
Identificador único para este grupo de hosts. | ||
name | x | cadena |
Nombre del grupo anfitrión. | ||
templates | - | Elemento raíz para plantillas vinculadas. | |||
name | x | cadena |
Nombre de la plantilla. | ||
tags | - | Elemento raíz para etiquetas de plantilla. | |||
tag | x | cadena |
Nombre de etiqueta. | ||
value | - | cadena |
Valor de etiqueta. | ||
macros | - | Elemento raíz para macros de usuario de plantilla. | |||
macro | x | cadena |
Nombre de la macro de usuario. | ||
type | - | cadena |
0 - TEXTO (predeterminado) 1 - SECRETO_TEXTO 2 - VAULT |
Tipo de macro. | |
value | - | cadena |
Valor de macro de usuario. | ||
description | - | cadena |
Descripción de la macro de usuario. | ||
valuemaps | - | Elemento raíz para mapas de valores de plantilla. | |||
uuid | x | cadena |
Identificador único para este mapa de valores. | ||
name | x | cadena |
Nombre del mapa de valores. | ||
mapping | - | Elemento raíz para asignaciones. | |||
value | x | cadena |
Valor de un mapeo. | ||
newvalue | x | cadena |
Nuevo valor de un mapeo. |
Element | Element property | Required | Type | Range1 | Description |
---|---|---|---|---|---|
items | - | Root element for items. | |||
uuid | x | string |
Unique identifier for the item. | ||
name | x | string |
Item name. | ||
type | - | string |
0 - ZABBIX_PASSIVE (default) 2 - TRAP 3 - SIMPLE 5 - INTERNAL 7 - ZABBIX_ACTIVE 10 - EXTERNAL 11 - ODBC 12 - IPMI 13 - SSH 14 - TELNET 15 - CALCULATED 16 - JMX 17 - SNMP_TRAP 18 - DEPENDENT 19 - HTTP_AGENT 20 - SNMP_AGENT 21 - ITEM_TYPE_SCRIPT |
Item type. | |
snmp_oid | - | string |
SNMP object ID. Required by SNMP items. |
||
key | x | string |
Item key. | ||
delay | - | string |
Default: 1m | Update interval of the item. Accepts seconds or a time unit with suffix (30s, 1m, 2h, 1d). Optionally one or more custom intervals can be specified either as flexible intervals or scheduling. Multiple intervals are separated by a semicolon. User macros may be used. A single macro has to fill the whole field. Multiple macros in a field or macros mixed with text are not supported. Flexible intervals may be written as two macros separated by a forward slash (e.g. {$FLEX_INTERVAL}/{$FLEX_PERIOD} ). |
|
history | - | string |
Default: 90d | A time unit of how long the history data should be stored. Time unit with suffix, user macro or LLD macro. | |
trends | - | string |
Default: 365d | A time unit of how long the trends data should be stored. Time unit with suffix, user macro or LLD macro. | |
status | - | string |
0 - ENABLED (default) 1 - DISABLED |
Item status. | |
value_type | - | string |
0 - FLOAT 1 - CHAR 2 - LOG 3 - UNSIGNED (default) 4 - TEXT |
Received value type. | |
allowed_hosts | - | string |
List of IP addresses (comma delimited) of hosts allowed sending data for the item. Used by trapper and HTTP agent items. |
||
units | - | string |
Units of returned values (bps, B, etc). | ||
params | - | text |
Additional parameters depending on the type of the item: - executed script for Script, SSH and Telnet items; - SQL query for database monitor items; - formula for calculated items. |
||
ipmi_sensor | - | string |
IPMI sensor. Used only by IPMI items. |
||
authtype | - | string |
Authentication type for SSH agent items: 0 - PASSWORD (default) 1 - PUBLIC_KEY Authentication type for HTTP agent items: 0 - NONE (default) 1 - BASIC 2 - NTLM |
Authentication type. Used only by SSH and HTTP agent items. |
|
username | - | string |
Username for authentication. Used by simple check, SSH, Telnet, database monitor, JMX and HTTP agent items. Required by SSH and Telnet items. When used by JMX agent, password should also be specified together with the username or both properties should be left blank. |
||
password | - | string |
Password for authentication. Used by simple check, SSH, Telnet, database monitor, JMX and HTTP agent items. When used by JMX agent, username should also be specified together with the password or both properties should be left blank. |
||
publickey | - | string |
Name of the public key file. Required for SSH agent items. |
||
privatekey | - | string |
Name of the private key file. Required for SSH agent items. |
||
port | - | string |
Custom port monitored by the item. Can contain user macros. Used only by SNMP items. |
||
description | - | text |
Item description. | ||
inventory_link | - | string |
0 - NONE Capitalized host inventory field name. For example: 4 - ALIAS 6 - OS_FULL 14 - HARDWARE etc. |
Host inventory field that is populated by the item. Refer to the host inventory page for a list of supported host inventory fields and their IDs. |
|
logtimefmt | - | string |
Format of the time in log entries. Used only by log items. |
||
jmx_endpoint | - | string |
JMX endpoint. Used only by JMX agent items. |
||
url | - | string |
URL string. Required only for HTTP agent items. |
||
allow_traps | - | string |
0 - NO (default) 1 - YES |
Allow to populate value as in a trapper item. Used only by HTTP agent items. |
|
follow_redirects | - | string |
0 - NO 1 - YES (default) |
Follow HTTP response redirects while pooling data. Used only by HTTP agent items. |
|
headers | - | Root element for HTTP(S) request headers, where header name is used as key and header value as value. Used only by HTTP agent items. |
|||
name | x | string |
Header name. | ||
value | x | string |
Header value. | ||
http_proxy | - | string |
HTTP(S) proxy connection string. Used only by HTTP agent items. |
||
output_format | - | string |
0 - RAW (default) 1 - JSON |
How to process response. Used only by HTTP agent items. |
|
post_type | - | string |
0 - RAW (default) 2 - JSON 3 - XML |
Type of post data body. Used only by HTTP agent items. |
|
posts | - | string |
HTTP(S) request body data. Used only by HTTP agent items. |
||
query_fields | - | Root element for query parameters. Used only by HTTP agent items. |
|||
name | x | string |
Parameter name. | ||
value | - | string |
Parameter value. | ||
request_method | - | string |
0 - GET (default) 1 - POST 2 - PUT 3 - HEAD |
Request method. Used only by HTTP agent items. |
|
retrieve_mode | - | string |
0 - BODY (default) 1 - HEADERS 2 - BOTH |
What part of response should be stored. Used only by HTTP agent items. |
|
ssl_cert_file | - | string |
Public SSL Key file path. Used only by HTTP agent items. |
||
ssl_key_file | - | string |
Private SSL Key file path. Used only by HTTP agent items. |
||
ssl_key_password | - | string |
Password for SSL Key file. Used only by HTTP agent items. |
||
status_codes | - | string |
Ranges of required HTTP status codes separated by commas. Supports user macros. Example: 200,200-{$M},{$M},200-400 Used only by HTTP agent items. |
||
timeout | - | string |
Item data polling request timeout. Supports user macros. Used by HTTP agent and Script items. |
||
verify_host | - | string |
0 - NO (default) 1 - YES |
Validate if host name in URL is in Common Name field or a Subject Alternate Name field of host certificate. Used only by HTTP agent items. |
|
verify_peer | - | string |
0 - NO (default) 1 - YES |
Validate if host certificate is authentic. Used only by HTTP agent items. |
|
parameters | - | Root element for user-defined parameters. Used only by Script items. |
|||
name | x | string |
Parameter name. Used only by Script items. |
||
value | - | string |
Parameter value. Used only by Script items. |
||
value map | - | Value map. | |||
name | x | string |
Name of the value map to use for the item. | ||
preprocessing | - | Root element for item value preprocessing. | |||
step | - | Individual item value preprocessing step. | |||
type | x | string |
1 - MULTIPLIER 2 - RTRIM 3 - LTRIM 4 - TRIM 5 - REGEX 6 - BOOL_TO_DECIMAL 7 - OCTAL_TO_DECIMAL 8 - HEX_TO_DECIMAL 9 - SIMPLE_CHANGE (calculated as (received value-previous value)) 10 - CHANGE_PER_SECOND (calculated as (received value-previous value)/(time now-time of last check)) 11 - XMLPATH 12 - JSONPATH 13 - IN_RANGE 14 - MATCHES_REGEX 15 - NOT_MATCHES_REGEX 16 - CHECK_JSON_ERROR 17 - CHECK_XML_ERROR 18 - CHECK_REGEX_ERROR 19 - DISCARD_UNCHANGED 20 - DISCARD_UNCHANGED_HEARTBEAT 21 - JAVASCRIPT 22 - PROMETHEUS_PATTERN 23 - PROMETHEUS_TO_JSON 24 - CSV_TO_JSON 25 - STR_REPLACE 26 - CHECK_NOT_SUPPORTED |
Type of the item value preprocessing step. | |
parameters | - | Root element for parameters of the item value preprocessing step. | |||
parameter | x | string |
Individual parameter of the item value preprocessing step. | ||
error_handler | - | string |
0 - ORIGINAL_ERROR (default) 1 - DISCARD_VALUE 2 - CUSTOM_VALUE 3 - CUSTOM_ERROR |
Action type used in case of preprocessing step failure. | |
error_handler_params | - | string |
Error handler parameters used with 'error_handler'. | ||
master_item | - | Individual item master item. Required by dependent items. |
|||
key | x | string |
Dependent item master item key value. Recursion up to 3 dependent items and maximum count of dependent items equal to 29999 are allowed. |
||
triggers | - | Root element for simple triggers. | |||
For trigger element tag values, see template trigger tags. | |||||
tags | - | Root element for item tags. | |||
tag | x | string |
Tag name. | ||
value | - | string |
Tag value. |
Elemento | Propiedad del elemento | Requerido | Tipo | Rango | Descripción |
---|---|---|---|---|---|
discovery_rules | - | Elemento raíz para reglas de descubrimiento de bajo nivel. | |||
Para la mayoría de los valores de etiquetas de elementos, consulte los valores de etiquetas de elementos para una métrica normal. A continuación solo se describen las etiquetas que son específicas de las reglas de descubrimiento de bajo nivel. | |||||
type | - | cadena |
0 - ZABBIX_PASSIVE (predeterminado) 2 - TRAP 3 - SIMPLE 5 - INTERNO 7 - ZABBIX_ACTIVE 10 - EXTERNO 11 - ODBC 12 - IPMI 13 - SSH 14 - TELNET 16 - JMX 18 - DEPENDIENTE 19 - HTTP_AGENT 20 - SNMP _AGENT |
Tipo de elemento. | |
lifetimel | - | string |
Predeterminado: 30d | Período de tiempo después del cual se eliminarán los elementos que ya no se descubren. Segundos, unidad de tiempo con sufijo o macro de usuario. | |
filter | Filtro individual. | ||||
evaltype | - | string |
0 - AND_OR (predeterminado) 1 - AND 2 - O 3 - FÓRMULA |
Lógica a usar para verificar las condiciones del filtro de reglas de descubrimiento de bajo nivel. | |
formula | - | cadena |
Fórmula de cálculo personalizada para las condiciones del filtro. | ||
condiciones | - | Elemento raíz para condiciones de filtrado. | |||
macro | x | cadena |
Nombre de la macro de descubrimiento de bajo nivel. | ||
value | - | cadena |
Valor de filtro: expresión regular o expresión regular global. | ||
operator | - | cadena |
8 - MATCHES_REGEX (predeterminado) 9 - NOT_MATCHES_REGEX |
Operador de condición. | |
formulaid | x | carácter |
ID único arbitrario que se utiliza para hacer referencia a una condición de la expresión personalizada. Sólo puede contener letras mayúsculas. El ID debe ser definido por el usuario al modificar las condiciones del filtro, pero se generará nuevamente al solicitarlas posteriormente. | ||
lld_macro_paths | - | Elemento raíz para rutas de macro LLD. | |||
lld_macro | x | cadena |
Nombre de la macro de descubrimiento de bajo nivel. | ||
path | x | cadena |
Selector de valor que se asignará a la macro correspondiente. | ||
preprocessing | - | Preprocesamiento del valor de la regla LLD. | |||
step | - | Paso de preprocesamiento del valor de regla LLD individual. | |||
Para la mayoría de los valores de etiquetas de elementos, consulte Valores de etiquetas de elementos para el preprocesamiento de valores de elementos de plantilla. A continuación solo se describen las etiquetas que son específicas del preprocesamiento del valor de descubrimiento de bajo nivel de la plantilla. | |||||
type | x | cadena |
5 - REGEX 11 - XMLPATH 12 - JSONPATH 15 - NOT_MATCHES_REGEX 16 - CHECK_JSON_ERROR 17 - CHECK _XML_ERROR 20 - DISCARD_UNCHANGED_HEARTBEAT 21 - JAVASCRIPT 23 - PROMETHEUS_TO_JSON 24 - CSV_TO_JSON 25 - STR_REPLACE |
Tipo del paso de preprocesamiento del valor del artículo. | |
trigger_prototypes | - | Elemento raíz para prototipos de iniciador. | |||
Para conocer los valores de etiqueta de elemento de prototipo de iniciador, consulte las etiquetas de plantillas de iniciador normales. | |||||
graph_prototypes | - | Elemento raíz para prototipos de gráficos. | |||
Para conocer los valores de etiquetas de elementos de prototipos de gráficos, consulte las etiquetas gráfico de plantilla normales. | |||||
host_prototypes | - | Elemento raíz para prototipos de equipo. | |||
Para conocer los valores de etiquetas de elementos del prototipo de equipo, consulte las etiquetas de equipo normales. | |||||
item_prototypes | - | Elemento raíz para prototipos de métricas. | |||
Para conocer los valores de las etiquetas del elemento prototipo de métrica, consulte las etiquetas normales de plantilla de métrica. | |||||
master_item | - | Datos del prototipo de métrica individual, métrica principal/prototipo de métrica. | |||
key | x | cadena |
Valor clave del prototipo de métrica maestro/valor clave del prototipo de métrica dependiente. Obligatorio para una métrica dependiente. |
Element | Element property | Required | Type | Range1 | Description |
---|---|---|---|---|---|
triggers | - | Root element for triggers. | |||
uuid | x | string |
Unique identifier for this trigger. | ||
expression | x | string |
Trigger expression. | ||
recovery_mode | - | string |
0 - EXPRESSION (default) 1 - RECOVERY_EXPRESSION 2 - NONE |
Basis for generating OK events. | |
recovery_expression | - | string |
Trigger recovery expression. | ||
name | x | string |
Trigger name. | ||
correlation_mode | - | string |
0 - DISABLED (default) 1 - TAG_VALUE |
Correlation mode (no event correlation or event correlation by tag). | |
correlation_tag | - | string |
The tag name to be used for event correlation. | ||
url | - | string |
URL associated with the trigger. | ||
status | - | string |
0 - ENABLED (default) 1 - DISABLED |
Trigger status. | |
priority | - | string |
0 - NOT_CLASSIFIED (default) 1 - INFO 2 - WARNING 3 - AVERAGE 4 - HIGH 5 - DISASTER |
Trigger severity. | |
description | - | text |
Trigger description. | ||
type | - | string |
0 - SINGLE (default) 1 - MULTIPLE |
Event generation type (single problem event or multiple problem events). | |
manual_close | - | string |
0 - NO (default) 1 - YES |
Manual closing of problem events. | |
dependencies | - | Root element for dependencies. | |||
name | x | string |
Dependency trigger name. | ||
expression | x | string |
Dependency trigger expression. | ||
recovery_expression | - | string |
Dependency trigger recovery expression. | ||
tags | - | Root element for trigger tags. | |||
tag | x | string |
Tag name. | ||
value | - | string |
Tag value. |
Element | Element property | Required | Type | Range1 | Description |
---|---|---|---|---|---|
graphs | - | Root element for graphs. | |||
uuid | x | string |
Unique identifier for this graph. | ||
name | x | string |
Graph name. | ||
width | - | integer |
20-65535 (default: 900) | Graph width, in pixels. Used for preview and for pie/exploded graphs. | |
height | - | integer |
20-65535 (default: 200) | Graph height, in pixels. Used for preview and for pie/exploded graphs. | |
yaxismin | - | double |
Default: 0 | Value of Y axis minimum. Used if 'ymin_type_1' is FIXED. |
|
yaxismax | - | double |
Default: 0 | Value of Y axis maximum. Used if 'ymax_type_1' is FIXED. |
|
show_work_period | - | string |
0 - NO 1 - YES (default) |
Highlight non-working hours. Used by normal and stacked graphs. |
|
show_triggers | - | string |
0 - NO 1 - YES (default) |
Display simple trigger values as a line. Used by normal and stacked graphs. |
|
type | - | string |
0 - NORMAL (default) 1 - STACKED 2 - PIE 3 - EXPLODED |
Graph type. | |
show_legend | - | string |
0 - NO 1 - YES (default) |
Display graph legend. | |
show_3d | - | string |
0 - NO (default) 1 - YES |
Enable 3D style. Used by pie and exploded pie graphs. |
|
percent_left | - | double |
Default:0 | Show the percentile line for left axis. Used only for normal graphs. |
|
percent_right | - | double |
Default:0 | Show the percentile line for right axis. Used only for normal graphs. |
|
ymin_type_1 | - | string |
0 - CALCULATED (default) 1 - FIXED 2 - ITEM |
Minimum value of Y axis. Used by normal and stacked graphs. |
|
ymax_type_1 | - | string |
0 - CALCULATED (default) 1 - FIXED 2 - ITEM |
Maximum value of Y axis. Used by normal and stacked graphs. |
|
ymin_item_1 | - | Individual item details. Required if 'ymin_type_1' is ITEM. |
|||
host | x | string |
Item host. | ||
key | x | string |
Item key. | ||
ymax_item_1 | - | Individual item details. Required if 'ymax_type_1' is ITEM. |
|||
host | x | string |
Item host. | ||
key | x | string |
Item key. | ||
graph_items | x | Root element for graph items. | |||
sortorder | - | integer |
Draw order. The smaller value is drawn first. Can be used to draw lines or regions behind (or in front of) another. | ||
drawtype | - | string |
0 - SINGLE_LINE (default) 1 - FILLED_REGION 2 - BOLD_LINE 3 - DOTTED_LINE 4 - DASHED_LINE 5 - GRADIENT_LINE |
Draw style of the graph item. Used only by normal graphs. |
|
color | - | string |
Element color (6 symbols, hex). | ||
yaxisside | - | string |
0 - LEFT (default) 1 - RIGHT |
Side of the graph where the graph item's Y scale will be drawn. Used by normal and stacked graphs. |
|
calc_fnc | - | string |
1 - MIN 2 - AVG (default) 4 - MAX 7 - ALL (minimum, average and maximum; used only by simple graphs) 9 - LAST (used only by pie and exploded pie graphs) |
Data to draw if more than one value exists for an item. | |
type | - | string |
0 - SIMPLE (default) 2 - GRAPH_SUM (value of the item represents the whole pie; used only by pie and exploded pie graphs) |
Graph item type. | |
item | x | Individual item. | |||
host | x | string |
Item host. | ||
key | x | string |
Item key. |
Element | Element property | Required | Type | Range1 | Description |
---|---|---|---|---|---|
httptests | - | Root element for web scenarios. | |||
uuid | x | string |
Unique identifier for this web scenario. | ||
name | x | string |
Web scenario name. | ||
delay | - | string |
Default: 1m | Frequency of executing the web scenario. Seconds, time unit with suffix or user macro. | |
attempts | - | integer |
1-10 (default: 1) | The number of attempts for executing web scenario steps. | |
agent | - | string |
Default: Zabbix | Client agent. Zabbix will pretend to be the selected browser. This is useful when a website returns different content for different browsers. | |
http_proxy | - | string |
Specify an HTTP proxy to use, using the format: http://[username[:password]@]proxy.example.com[:port] |
||
variables | - | Root element for scenario-level variables (macros) that may be used in scenario steps. | |||
name | x | text |
Variable name. | ||
value | x | text |
Variable value. | ||
headers | - | Root element for HTTP headers that will be sent when performing a request. Headers should be listed using the same syntax as they would appear in the HTTP protocol. | |||
name | x | text |
Header name. | ||
value | x | text |
Header value. | ||
status | - | string |
0 - ENABLED (default) 1 - DISABLED |
Web scenario status. | |
authentication | - | string |
0 - NONE (default) 1 - BASIC 2 - NTLM |
Authentication method. | |
http_user | - | string |
User name used for basic, HTTP or NTLM authentication. | ||
http_password | - | string |
Password used for basic, HTTP or NTLM authentication. | ||
verify_peer | - | string |
0 - NO (default) 1 - YES |
Verify the SSL certificate of the web server. | |
verify_host | - | string |
0 - NO (default) 1 - YES |
Verify that the Common Name field or the Subject Alternate Name field of the web server certificate matches. | |
ssl_cert_file | - | string |
Name of the SSL certificate file used for client authentication (must be in PEM format). | ||
ssl_key_file | - | string |
Name of the SSL private key file used for client authentication (must be in PEM format). | ||
ssl_key_password | - | string |
SSL private key file password. | ||
steps | x | Root element for web scenario steps. | |||
name | x | string |
Web scenario step name. | ||
url | x | string |
URL for monitoring. | ||
query_fields | - | Root element for query fields - an array of HTTP fields that will be added to the URL when performing a request. | |||
name | x | string |
Query field name. | ||
value | - | string |
Query field value. | ||
posts | - | HTTP POST variables as a string (raw post data) or as an array of HTTP fields (form field data). | |||
name | x | string |
Post field name. | ||
value | x | string |
Post field value. | ||
variables | - | Root element of step-level variables (macros) that should be applied after this step. If the variable value has a 'regex:' prefix, then its value is extracted from the data returned by this step according to the regular expression pattern following the 'regex:' prefix |
|||
name | x | string |
Variable name. | ||
value | x | string |
Variable value. | ||
headers | - | Root element for HTTP headers that will be sent when performing a request. Headers should be listed using the same syntax as they would appear in the HTTP protocol. | |||
name | x | string |
Header name. | ||
value | x | string |
Header value. | ||
follow_redirects | - | string |
0 - NO 1 - YES (default) |
Follow HTTP redirects. | |
retrieve_mode | - | string |
0 - BODY (default) 1 - HEADERS 2 - BOTH |
HTTP response retrieve mode. | |
timeout | - | string |
Default: 15s | Timeout of step execution. Seconds, time unit with suffix or user macro. | |
required | - | string |
Text that must be present in the response. Ignored if empty. | ||
status_codes | - | string |
A comma delimited list of accepted HTTP status codes. Ignored if empty. For example: 200-201,210-299 | ||
tags | - | Root element for web scenario tags. | |||
tag | x | string |
Tag name. | ||
value | - | string |
Tag value. |
Element | Element property | Required | Type | Range1 | Description |
---|---|---|---|---|---|
dashboards | - | Root element for template dashboards. | |||
uuid | x | string |
Unique identifier for this dashboard. | ||
name | x | string |
Template dashboard name. | ||
display period | - | integer |
Display period of dashboard pages. | ||
auto_start | - | string |
0 - no 1 - yes |
Slideshow auto start. | |
pages | - | Root element for template dashboard pages. | |||
name | - | string |
Page name. | ||
display period | - | integer |
Page display period. | ||
sortorder | - | integer |
Page sorting order. | ||
widgets | - | Root element for template dashboard widgets. | |||
type | x | string |
Widget type. | ||
name | - | string |
Widget name. | ||
x | - | integer |
0-23 | Horizontal position from the left side of the template dashboard. | |
y | - | integer |
0-62 | Vertical position from the top of the template dashboard. | |
width | - | integer |
1-24 | Widget width. | |
height | - | integer |
2-32 | Widget height. | |
hide_header | - | string |
0 - no 1 - yes |
Hide widget header. | |
fields | - | Root element for the template dashboard widget fields. | |||
type | x | string |
0 - INTEGER 1 - STRING 3 - HOST 4 - ITEM 5 - ITEM_PROTOTYPE 6 - GRAPH 7 - GRAPH_PROTOTYPE |
Widget field type. | |
name | x | string |
Widget field name. | ||
value | x | mixed | Widget field value, depending on the field type. |
1 Para valores de cadena, solo se exportará la cadena (p. ej. "ZABBIX_ACTIVE") sin la numeración utilizada en esta tabla. Los números para los valores de rango (correspondientes a los valores API) en esta tabla se utiliza solo para realizar pedidos.