Overview

    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

    • 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

    Depending on the selected format, hosts are exported to a local file with a default name:

    • zabbix_export_hosts.yaml - in YAML export (default option for export)

    • zabbix_export_hosts.xml - in XML export

    Importing

    To import hosts, do the following:

    • Go to: ConfigurationHosts

    • Click on Import to the right

    • Select the import file

    • Click on Import

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

    Import rules:

    Export format

    Export format in YAML:

    Element tags

    Element tag values are explained in the table below.

    Host tags
    ElementElement propertyRequiredTypeRangeDescription
    groupsxRoot element for host groups.
    namexHost group name.
    hosts-Root element for hosts.
    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.
    namexstringTemplate name.
    interfaces-Root element for host interfaces.
    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.
    For item element tag values, see host item tags.
    tags-Root element for host tags.
    tagxstringTag name.
    value-stringTag value.
    macros-Root element for macros.
    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
    Host low-level discovery rule tags
    ElementElement propertyRequiredTypeRangeDescription
    discovery_rules-Root element for low-level discovery rules.
    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.
    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_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.
    For trigger prototype element tag values, see regular host trigger tags.
    graph_prototypes-Root element for graph prototypes.
    For graph prototype element tag values, see regular tags.
    host_prototypes-Root element for host prototypes.
    For host prototype element tag values, see regular host tags.
    item_prototypes-Root element for item prototypes.
    For item prototype element tag values, see regular tags.
    application_prototypes-Root element for application prototypes.
    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
    Host graph tags
    ElementElement propertyRequiredTypeRange1Description
    graphs-Root element for graphs.
    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.
    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
    Footnotes