14. Configuration export/import

    Overview

    Typical use cases for this functionality:

    • share templates or network maps - Zabbix users may share their configuration parameters

    • share web scenarios on share.zabbix.com - export a template with the web scenarios and upload to share.zabbix.com. Then others can download the template and import the XML into Zabbix.

    What can be exported/imported

    Objects that can be exported/imported are:

    Export format

    Data can be exported using the Zabbix web frontend or Zabbix API. Supported export formats are:

    • XML or JSON - in Zabbix API

    Details about export

    • All supported elements are exported in one file.

    • Host and template entities (items, triggers, graphs, discovery rules) that are inherited from linked templates are not exported. Any changes made to those entities on a host level (such as changed item interval, modified regular expression or added prototypes to the low-level discovery rule) will be lost when exporting; when importing, all entities from linked templates are re-created as on the original linked template.

    • Entities created by low-level discovery and any entities depending on them are not exported. For example, a trigger created for an LLD-rule generated item will not be exported.

    Details about import

    • When updating existing images during image import, “imagetype” field is ignored, i.e. it is impossible to change image type via import.

    • When importing hosts/templates using the “Delete missing” option, host/template macros not present in the imported XML file will be deleted too.

    • Empty tags for items, triggers, graphs, host/template applications, discoveryRules, itemPrototypes, triggerPrototypes, graphPrototypes are meaningless i.e. it’s the same as if it was missing. Other tags, for example, item applications, are meaningful i.e. empty tag means no applications for item, missing tag means don’t update applications.

    • See about supported XML versions.

    XML base format

    Default header for XML documents.

    Root element for Zabbix XML export.

    Export version.

    Date when export was created in ISO 8601 long format.