3 Hosts

Overview

Hosts are exported with many related objects and object relations.

Host export contains:

  • linked host groups

  • host data

  • template linkage

  • host group linkage

  • host interfaces

  • directly linked applications

  • directly linked items

  • directly linked triggers

  • directly linked graphs

  • directly linked discovery rules with all prototypes

  • directly linked web scenarios

  • host macros

  • host inventory data

  • value maps

Exporting

To export hosts, do the following:

  • Go to: ConfigurationHosts

  • Mark the checkboxes of the hosts to export

  • Click on Export below the list

3 Hosts - 图1

Selected hosts are exported to a local XML file with default name zbx_export_hosts.xml.

Importing

To import hosts, do the following:

  • Go to: ConfigurationHosts

  • Click on Import to the right

  • Select the import file

  • Mark the required options in import rules

  • Click on Import

3 Hosts - 图2

A success or failure message of the import will be displayed in the frontend.

Import rules:

RuleDescription
Update existingExisting elements will be updated with data taken from the import file. Otherwise they will not be updated.
Create newThe import will add new elements using data from the import file. Otherwise it will not add them.
Delete missingThe import will remove existing elements not present in the import file. Otherwise it will not remove them.
If Delete missing is marked for template linkage, existing template linkage not present in the import file will be removed from the host along with all entities inherited from the potentially unlinked templates (items, triggers, etc).

Export format

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3. <version>5.0</version>
  4. <date>2020-04-22T07:47:33Z</date>
  5. <groups>
  6. <group>
  7. <name>Discovered hosts</name>
  8. </group>
  9. <group>
  10. <name>Zabbix servers</name>
  11. </group>
  12. </groups>
  13. <hosts>
  14. <host>
  15. <host>Zabbix server 1</host>
  16. <name>Main Zabbix server</name>
  17. <proxy>
  18. <name>Remote proxy</name>
  19. </proxy>
  20. <tls_connect>TLS_PSK</tls_connect>
  21. <tls_accept>
  22. <option>NO_ENCRYPTION</option>
  23. <option>TLS_PSK</option>
  24. </tls_accept>
  25. <tls_psk_identity>z112</tls_psk_identity>
  26. <tls_psk>1f87b595725ac58dd977beef14b97461a7c1045b9a1c963065002c5473194952</tls_psk>
  27. <templates>
  28. <template>
  29. <name>Template App Zabbix Server</name>
  30. </template>
  31. <template>
  32. <name>Template OS Linux</name>
  33. </template>
  34. </templates>
  35. <groups>
  36. <group>
  37. <name>Discovered hosts</name>
  38. </group>
  39. <group>
  40. <name>Zabbix servers</name>
  41. </group>
  42. </groups>
  43. <interfaces>
  44. <interface>
  45. <ip>192.168.1.1</ip>
  46. <interface_ref>if1</interface_ref>
  47. </interface>
  48. </interfaces>
  49. <items>
  50. <item>
  51. <name>Zabbix trap</name>
  52. <type>TRAP</type>
  53. <key>trap</key>
  54. <delay>0</delay>
  55. <history>1w</history>
  56. <applications>
  57. <application>
  58. <name>Zabbix server</name>
  59. </application>
  60. </applications>
  61. <preprocessing>
  62. <step>
  63. <type>MULTIPLIER</type>
  64. <params>8</params>
  65. </step>
  66. </preprocessing>
  67. <triggers>
  68. <trigger>
  69. <expression>{last()}=0</expression>
  70. <name>Last value is zero</name>
  71. <priority>WARNING</priority>
  72. <tags>
  73. <tag>
  74. <tag>Process</tag>
  75. <value>Internal test</value>
  76. </tag>
  77. </tags>
  78. </trigger>
  79. </triggers>
  80. </item>
  81. </items>
  82. <tags>
  83. <tag>
  84. <tag>Process</tag>
  85. <value>Zabbix</value>
  86. </tag>
  87. </tags>
  88. <macros>
  89. <macro>
  90. <macro>{$HOST.MACRO}</macro>
  91. <value>123</value>
  92. </macro>
  93. <macro>
  94. <macro>{$PASSWORD1}</macro>
  95. <type>SECRET_TEXT</type>
  96. </macro>
  97. </macros>
  98. <inventory>
  99. <type>Zabbix server</type>
  100. <name>yyyyyy-HP-Pro-3010-Small-Form-Factor-PC</name>
  101. <os>Linux yyyyyy-HP-Pro-3010-Small-Form-Factor-PC 4.4.0-165-generic #193-Ubuntu SMP Tue Sep 17 17:42:52 UTC 2019 x86_64</os>
  102. </inventory>
  103. <inventory_mode>AUTOMATIC</inventory_mode>
  104. </host>
  105. </hosts>
  106. <graphs>
  107. <graph>
  108. <name>CPU utilization server</name>
  109. <show_work_period>NO</show_work_period>
  110. <show_triggers>NO</show_triggers>
  111. <graph_items>
  112. <graph_item>
  113. <drawtype>FILLED_REGION</drawtype>
  114. <color>FF5555</color>
  115. <item>
  116. <host>Zabbix server 1</host>
  117. <key>system.cpu.util[,steal]</key>
  118. </item>
  119. </graph_item>
  120. <graph_item>
  121. <sortorder>1</sortorder>
  122. <drawtype>FILLED_REGION</drawtype>
  123. <color>55FF55</color>
  124. <item>
  125. <host>Zabbix server 1</host>
  126. <key>system.cpu.util[,softirq]</key>
  127. </item>
  128. </graph_item>
  129. <graph_item>
  130. <sortorder>2</sortorder>
  131. <drawtype>FILLED_REGION</drawtype>
  132. <color>009999</color>
  133. <item>
  134. <host>Zabbix server 1</host>
  135. <key>system.cpu.util[,interrupt]</key>
  136. </item>
  137. </graph_item>
  138. <graph_item>
  139. <sortorder>3</sortorder>
  140. <drawtype>FILLED_REGION</drawtype>
  141. <color>990099</color>
  142. <item>
  143. <host>Zabbix server 1</host>
  144. <key>system.cpu.util[,nice]</key>
  145. </item>
  146. </graph_item>
  147. <graph_item>
  148. <sortorder>4</sortorder>
  149. <drawtype>FILLED_REGION</drawtype>
  150. <color>999900</color>
  151. <item>
  152. <host>Zabbix server 1</host>
  153. <key>system.cpu.util[,iowait]</key>
  154. </item>
  155. </graph_item>
  156. <graph_item>
  157. <sortorder>5</sortorder>
  158. <drawtype>FILLED_REGION</drawtype>
  159. <color>990000</color>
  160. <item>
  161. <host>Zabbix server 1</host>
  162. <key>system.cpu.util[,system]</key>
  163. </item>
  164. </graph_item>
  165. <graph_item>
  166. <sortorder>6</sortorder>
  167. <drawtype>FILLED_REGION</drawtype>
  168. <color>000099</color>
  169. <calc_fnc>MIN</calc_fnc>
  170. <item>
  171. <host>Zabbix server 1</host>
  172. <key>system.cpu.util[,user]</key>
  173. </item>
  174. </graph_item>
  175. <graph_item>
  176. <sortorder>7</sortorder>
  177. <drawtype>FILLED_REGION</drawtype>
  178. <color>009900</color>
  179. <item>
  180. <host>Zabbix server 1</host>
  181. <key>system.cpu.util[,idle]</key>
  182. </item>
  183. </graph_item>
  184. </graph_items>
  185. </graph>
  186. </graphs>
  187. </zabbix_export>

Element tags

Element tag values are explained in the table below.

Host tags
ElementElement propertyRequiredTypeRange1Description
groupsxRoot element for host groups.
groupxIndividual host group.
namexstringHost group name.
hosts-Root element for hosts.
host-Individual host.
hostxstringUnique host name.
name-stringVisible host name.
description-textHost description.
status-string0 - ENABLED (default)
1 - DISABLED
Host status.
ipmi_authtype-string-1 - DEFAULT (default)
0 - NONE
1 - MD2
2 - MD5
4 - STRAIGHT
5 - OEM
6 - RMCP_PLUS
IPMI session authentication type.
ipmi_privilege-string1 - CALLBACK
2 - USER (default)
3 - OPERATOR
4 - ADMIN
5 - OEM
IPMI session privilege level.
ipmi_username-stringUsername for IPMI checks.
ipmi_password-stringPassword for IPMI checks.
tls_connect-string1 - NO_ENCRYPTION (default)
2 - TLS_PSK
4 - TLS_CERTIFICATE
Type of outgoing connection.
tls_accept-Root element for incoming connection options.
option-string1 - NO_ENCRYPTION (default)
2 - TLS_PSK
4 - TLS_CERTIFICATE
Type of incoming connection.

If both unencrypted and encrypted connection is allowed, the <option> property is used twice, one time with NO_ENCRYPTION and another with the encryption option (see example above).
tls_issuer-stringAllowed agent/proxy certificate issuer.
tls_subject-stringAllowed agent/proxy certificate subject.
tls_psk_identity-stringPSK identity string.

Required if either tls_connect or tls_accept has PSK enabled.
tls_psk-stringThe preshared key string, at least 32 hex digits.

Required if either tls_connect or tls_accept has PSK enabled.
proxy-Proxy.
namexstringName of the proxy (if any) that monitors the host.
templates-Root element for linked templates.
template-Individual template.
namexstringTemplate name.
interfaces-Root element for host interfaces.
interface-Individual interface.
default-string0 - NO
1 - YES (default)
Whether this is the primary host interface.
There can be only one primary interface of one type on a host.
type-string1 - ZABBIX (default)
2 - SNMP
3 - IPMI
4 - JMX
Interface type.
useip-string0 - NO
1 - YES (default)
Whether to use IP as the interface for connecting to the host (if not, DNS will be used).
ip-stringIP address, can be either IPv4 or IPv6.

Required if the connection is made via IP.
dns-stringDNS name.

Required if the connection is made via DNS.
port-stringPort number. Supports user macros.
interface_refxstringFormat: if<N>Interface reference name to be used in items.
details-Root element for interface details.
community-stringSNMP community.

Required by SNMPv1 and SNMPv2 items.
bulk-string0 - NO
1 - YES (default)
Use bulk requests for SNMP.
snmpv3_contextname-stringSNMPv3 context name.

Used only by SNMPv3 items.
snmpv3_securityname-stringSNMPv3 security name.

Used only by SNMPv3 items.
snmpv3_securitylevel-string0 - NOAUTHNOPRIV (default)
1 - AUTHNOPRIV
2 - AUTHPRIV
SNMPv3 security level.

Used only by SNMPv3 items.
snmpv3_authprotocol-string0 - MD5 (default)
1 - SHA
SNMPv3 authentication protocol.

Used only by SNMPv3 items.
snmpv3_authpassphrase-stringSNMPv3 authentication passphrase.

Used only by SNMPv3 items.
snmpv3_privprotocol-string0 - DES (default)
1 - AES
SNMPv3 privacy protocol.

Used only by SNMPv3 items.
snmpv3_privpassphrase-stringSNMPv3 privacy passphrase.

Used only by SNMPv3 items.
items-Root element for items.
item-Individual item.
For item element tag values, see host item tags.
tags-Root element for host tags.
tag-Individual host tag.
tagxstringTag name.
value-stringTag value.
macros-Root element for macros.
macro-Individual macro.
macroxUser macro name.
type-string0 - TEXT (default)
1 - SECRET_TEXT
Type of the macro.
value-stringUser macro value.
description-stringUser macro description.
inventory-Root element for host inventory.
<inventory_property>-Individual inventory property.

All available inventory properties are listed under the respective tags, e.g. <type>, <name>, <os> (see example above).
inventory_mode-string-1 - DISABLED
0 - MANUAL ​(default)
1 - AUTOMATIC
Inventory mode.
Host item tags
ElementElement propertyRequiredTypeRange1Description
items-Root element for items.
item-Individual item.
namexstringItem name.
type-string0 - ZABBIX_PASSIVE (default)
2 - TRAP
3 - SIMPLE
5 - INTERNAL
7 - ZABBIX_ACTIVE
8 - AGGREGATE
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
Item type.
snmp_oid-stringSNMP object ID.

Required by SNMP items.
keyxstringItem key.
delay-stringDefault: 1mUpdate 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-stringDefault: 90dA time unit of how long the history data should be stored. Time unit with suffix, user macro or LLD macro.
trends-stringDefault: 365dA time unit of how long the trends data should be stored. Time unit with suffix, user macro or LLD macro.
status-string0 - ENABLED (default)
1 - DISABLED
Item status.
value_type-string0 - FLOAT
1 - CHAR
2 - LOG
3 - UNSIGNED (default)
4 - TEXT
Received value type.
allowed_hosts-stringList of IP addresses (comma delimited) of hosts allowed sending data for the item.

Used by trapper and HTTP agent items.
units-stringUnits of returned values (bps, B, etc).
params-textAdditional parameters depending on the type of the item:
- executed script for SSH and Telnet items;
- SQL query for database monitor items;
- formula for calculated items.
ipmi_sensor-stringIPMI sensor.

Used only by IPMI items.
authtype-stringAuthentication 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-stringUsername 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-stringPassword 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-stringName of the public key file.

Required for SSH agent items.
privatekey-stringName of the private key file.

Required for SSH agent items.
description-textItem description.
inventory_link-string0 - 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-stringFormat of the time in log entries.
Used only by log items.
interface_ref-stringFormat: if<N>Reference to the host interface.
jmx_endpoint-stringJMX endpoint.

Used only by JMX agent items.
url-stringURL string.

Required only for HTTP agent items.
allow_traps-string0 - NO (default)
1 - YES
Allow to populate value as in a trapper item.

Used only by HTTP agent items.
follow_redirects-string0 - 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.
header-Individual header.
namexstringHeader name.
valuexstringHeader value.
http_proxy-stringHTTP(S) proxy connection string.

Used only by HTTP agent items.
output_format-string0 - RAW (default)
1 - JSON
How to process response.

Used only by HTTP agent items.
post_type-string0 - RAW (default)
2 - JSON
3 - XML
Type of post data body.

Used only by HTTP agent items.
posts-stringHTTP(S) request body data.

Used only by HTTP agent items.
query_fields-Root element for query parameters.

Used only by HTTP agent items.
query_field-Individual query parameter.
namexstringParameter name.
value-stringParameter value.
request_method-string0 - GET (default)
1 - POST
2 - PUT
3 - HEAD
Request method.

Used only by HTTP agent items.
retrieve_mode-string0 - BODY (default)
1 - HEADERS
2 - BOTH
What part of response should be stored.

Used only by HTTP agent items.
ssl_cert_file-stringPublic SSL Key file path.

Used only by HTTP agent items.
ssl_key_file-stringPrivate SSL Key file path.

Used only by HTTP agent items.
ssl_key_password-stringPassword for SSL Key file.

Used only by HTTP agent items.
status_codes-stringRanges 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-stringItem data polling request timeout. Supports user macros.

Used only by HTTP agent items.
verify_host-string0 - 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-string0 - NO (default)
1 - YES
Validate if host certificate is authentic.

Used only by HTTP agent items.
value map-Value map.
namexstringName of the value map to use for the item.
applications-Root element for applications.
application-Individual application.
namexstringApplication name.
preprocessing-Root element for item value preprocessing.
step-Individual item value preprocessing step.
typexstring1 - 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
Type of the item value preprocessing step.
paramsxstringParameters of the item value preprocessing step.

Multiple parameters are separated by LF (\n) character.
error_handler-string0 - ORIGINAL_ERROR (default)
1 - DISCARD_VALUE
2 - CUSTOM_VALUE
3 - CUSTOM_ERROR
Action type used in case of preprocessing step failure.
error_handler_params-stringError handler parameters used with ‘error_handler’.
master_item-Individual item master item.

Required by dependent items.
keyxstringDependent 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.
trigger-Individual simple trigger.
For trigger element tag values, see host trigger tags.
Host low-level discovery rule tags
ElementElement propertyRequiredTypeRange1Description
discovery_rules-Root element for low-level discovery rules.
discovery_rule-Individual low-level discovery rule.
For most of the element tag values, see element tag values for a regular item. Only the tags that are specific to low-level discovery rules, are described below.
type-string0 - ZABBIX_PASSIVE (default)
2 - TRAP
3 - SIMPLE
5 - INTERNAL
7 - ZABBIX_ACTIVE
10 - EXTERNAL
11 - ODBC
12 - IPMI
13 - SSH
14 - TELNET
16 - JMX
18 - DEPENDENT
19 - HTTP_AGENT
20 - SNMP_AGENT
Item type.
lifetime-stringDefault: 30dTime period after which items that are no longer discovered will be deleted. Seconds, time unit with suffix or user macro.
filterIndividual filter.
evaltype-string0 - AND_OR (default)
1 - AND
2 - OR
3 - FORMULA
Logic to use for checking low-level discovery rule filter conditions.
formula-stringCustom calculation formula for filter conditions.
conditions-Root element for filter conditions.
condition-Individual filter condition.
macroxstringLow-level discovery macro name.
value-stringFilter value: regular expression or global regular expression.
operator-string8 - MATCHES_REGEX (default)
9 - NOT_MATCHES_REGEX
Condition operator.
formulaidxcharacterArbitrary unique ID that is used to reference a condition from the custom expression. Can only contain capital-case letters. The ID must be defined by the user when modifying filter conditions, but will be generated anew when requesting them afterward.
lld_macro_paths-Root element for LLD macro paths.
lld_macro_path-Individual LLD macro path.
lld_macroxstringLow-level discovery macro name.
pathxstringSelector for value which will be assigned to the corresponding macro.
preprocessing-LLD rule value preprocessing.
step-Individual LLD rule value preprocessing step.
For most of the element tag values, see element tag values for a host item value preprocessing. Only the tags that are specific to low-level discovery value preprocessing, are described below.
typexstring5 - 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
Type of the item value preprocessing step.
trigger_prototypes-Root element for trigger prototypes.
trigger_prototype-Individual trigger prototype.
For trigger prototype element tag values, see regular host trigger tags.
graph_prototypes-Root element for graph prototypes.
graph_prototype-Individual graph prototype.
For graph prototype element tag values, see regular host graph tags.
host_prototypes-Root element for host prototypes.
host_prototype-Individual host prototype.
For host prototype element tag values, see regular host tags.
item_prototypes-Root element for item prototypes.
item_prototype-Individual item prototype.
For item prototype element tag values, see regular host item tags.
application_prototypes-Root element for application prototypes.
application_prototype-Individual application prototype.
namexstringApplication prototype name.
master_item-Individual item prototype master item/item prototype data.
keyxstringDependent item prototype master item/item prototype key value.

Required for a dependent item.
Host trigger tags
ElementElement propertyRequiredTypeRange1Description
triggers-Root element for triggers.
trigger-Individual trigger.
expressionxstringTrigger expression.
recovery_mode-string0 - EXPRESSION (default)
1 - RECOVERY_EXPRESSION
2 - NONE
Basis for generating OK events.
recovery_expression-stringTrigger recovery expression.
namexstringTrigger name.
correlation_mode-string0 - DISABLED (default)
1 - TAG_VALUE
Correlation mode (no event correlation or event correlation by tag).
correlation_tag-stringThe tag name to be used for event correlation.
url-stringURL associated with the trigger.
status-string0 - ENABLED (default)
1 - DISABLED
Trigger status.
priority-string0 - NOT_CLASSIFIED (default)
1 - INFO
2 - WARNING
3 - AVERAGE
4 - HIGH
5 - DISASTER
Trigger severity.
description-textTrigger description.
type-string0 - SINGLE (default)
1 - MULTIPLE
Event generation type (single problem event or multiple problem events).
manual_close-string0 - NO (default)
1 - YES
Manual closing of problem events.
dependencies-Root element for dependencies.
dependency-Individual trigger dependency.
namexstringDependency trigger name.
expressionxstringDependency trigger expression.
recovery_expression-stringDependency trigger recovery expression.
tags-Root element for event tags.
tag-Individual event tag.
tagxstringTag name.
value-stringTag value.
Host graph tags
ElementElement propertyRequiredTypeRange1Description
graphs-Root element for graphs.
graph-Individual graph.
namexstringGraph name.
width-integer20-65535 (default: 900)Graph width, in pixels. Used for preview and for pie/exploded graphs.
height-integer20-65535 (default: 200)Graph height, in pixels. Used for preview and for pie/exploded graphs.
yaxismin-doubleDefault: 0Value of Y axis minimum.

Used if ‘ymin_type_1’ is FIXED.
yaxismax-doubleDefault: 0Value of Y axis maximum.

Used if ‘ymax_type_1’ is FIXED.
show_work_period-string0 - NO
1 - YES (default)
Highlight non-working hours.

Used by normal and stacked graphs.
show_triggers-string0 - NO
1 - YES (default)
Display simple trigger values as a line.

Used by normal and stacked graphs.
type-string0 - NORMAL (default)
1 - STACKED
2 - PIE
3 - EXPLODED
Graph type.
show_legend-string0 - NO
1 - YES (default)
Display graph legend.
show_3d-string0 - NO (default)
1 - YES
Enable 3D style.

Used by pie and exploded pie graphs.
percent_left-doubleDefault:0Show the percentile line for left axis.

Used only for normal graphs.
percent_right-doubleDefault:0Show the percentile line for right axis.

Used only for normal graphs.
ymin_type_1-string0 - CALCULATED (default)
1 - FIXED
2 - ITEM
Minimum value of Y axis.

Used by normal and stacked graphs.
ymax_type_1-string0 - 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.
hostxstringItem host.
keyxstringItem key.
ymax_item_1-Individual item details.

Required if ‘ymax_type_1’ is ITEM.
hostxstringItem host.
keyxstringItem key.
graph_itemsxRoot element for graph items.
graph_itemxIndividual graph item.
sortorder-integerDraw order. The smaller value is drawn first. Can be used to draw lines or regions behind (or in front of) another.
drawtype-string0 - 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-stringElement color (6 symbols, hex).
yaxisside-string0 - 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-string1 - 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-string0 - SIMPLE (default)
2 - GRAPH_SUM (value of the item represents the whole pie; used only by pie and exploded pie graphs)
Graph item type.
itemxIndividual item.
hostxstringItem host.
keyxstringItem key.
Host web scenario tags
ElementElement propertyRequiredTypeRange1Description
httptests-Root element for web scenarios.
httptest-Individual web scenario.
namexstringWeb scenario name.
delay-stringDefault: 1mFrequency of executing the web scenario. Seconds, time unit with suffix or user macro.
attempts-integer1-10 (default: 1)The number of attempts for executing web scenario steps.
agent-stringDefault: ZabbixClient agent. Zabbix will pretend to be the selected browser. This is useful when a website returns different content for different browsers.
http_proxy-stringSpecify 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.
variable-Individual variable.
namextextVariable name.
valuextextVariable 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.
header-Individual header.
namextextHeader name.
valuextextHeader value.
status-string0 - ENABLED (default)
1 - DISABLED
Web scenario status.
authentication-string0 - NONE (default)
1 - BASIC
2 - NTLM
Authentication method.
http_user-stringUser name used for basic, HTTP or NTLM authentication.
http_password-stringPassword used for basic, HTTP or NTLM authentication.
verify_peer-string0 - NO (default)
1 - YES
Verify the SSL certificate of the web server.
verify_host-string0 - 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-stringName of the SSL certificate file used for client authentication (must be in PEM format).
ssl_key_file-stringName of the SSL private key file used for client authentication (must be in PEM format).
ssl_key_password-stringSSL private key file password.
stepsxRoot element for web scenario steps.
stepxIndividual web scenario step.
namexstringWeb scenario step name.
urlxstringURL 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.
query_field-Individual query field.
namexstringQuery field name.
value-stringQuery field value.
posts-HTTP POST variables as a string (raw post data) or as an array of HTTP fields (form field data).
post_field-Individual post field.
namexstringPost field name.
valuexstringPost 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
variable-Individual variable.
namexstringVariable name.
valuexstringVariable 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.
header-Individual header.
namexstringHeader name.
valuexstringHeader value.
follow_redirects-string0 - NO
1 - YES (default)
Follow HTTP redirects.
retrieve_mode-string0 - BODY (default)
1 - HEADERS
2 - BOTH
HTTP response retrieve mode.
timeout-stringDefault: 15sTimeout of step execution. Seconds, time unit with suffix or user macro.
required-stringText that must be present in the response. Ignored if empty.
status_codes-stringA comma delimited list of accepted HTTP status codes. Ignored if empty. For example: 200-201,210-299
Footnotes

1 For string values, only the string will be exported (e.g. “ZABBIX_ACTIVE”) without the numbering used in this table. The numbers for range values (corresponding to the API values) in this table is used for ordering only.