==== - #6 Screen export and import ====
Screen export and import is available since Zabbix version 1.8.2.
Screen export and import controls can be found under Configuration → Screens menu, where all configured screens are displayed.
=== - Screen exporting ===
In left bottom corner a selection box is available with two options: "Export selected" and "Delete selected".
{{:1.8:manual:xml_export_import:screen_export.png|}}
To export screens:
- Mark checkboxes next to screens you wish to export;
- Select "Export selected" if it's not selected already;
- Press button "Go";
- Select file where Zabbix should store XML data with exported screens.
=== - Screen importing ===
Importing screens is as easy as exporting them. On the top right corner near "Create Screen" button, you will find new button - "Import Screen".
{{:1.8:manual:xml_export_import:screen_import_button.png|}}
To import screens:
- Press "Import Screen" button. File selection along with options to control import is shown;
- Click the button to select XML file containing exported Zabbix screens;
- Check box under "Update existing" if you need to update (overwrite) existing screens;
- Check box under "Add missing" if you need to create new screen if it's missing;
- Press import to send needed data to the Zabbix frontend;
- Wait till page reloads. It can take some time if you have lots of screens to import or lots their elements. Zabbix frontend will inform you about import success or failure. Click on "Details" link in the left upper corner to see more detailed information about what has been done by import, or why it failed to import.
|{{:1.8:manual:xml_export_import:screen_import.png|}}|
|Screen import form|
=== - Exported data ===
Only screen structure is exported. That includes all screen settings are and all screen elements along with their configuration.
=== - Not exported data ===
Anything included in the screen itself (like a host, hostgroup or any other data) is not exported.
When importing a screen, if any of the referenced elements is missing, import will fail, for example, with:
Cannot find trigger "child_node5: ZBXHost:DOUBLE CHECK" used in exported screen "Link Screen"
=== - XML format - screen definition ===
Screen export consists of screen definition itself and any additional elements.
Screen name
1
2
...
* **name** - screen name;
* **hsize** - rows;
* **vsize** - columns;
* **screenitem** - individual screen items, described below.
=== - XML format - screen elements ===
Available screen elements and their IDs.
^Resource type^Description^
|0|[[#Graph]]|
|1|[[#Simple graph]]|
|2|[[#Map]]|
|3|[[#Plain text]]|
|4|[[#Hosts info]]|
|5|[[#Triggers info]]|
|6|[[#Server info]]|
|7|[[#Clock]]|
|8|[[#Screen]]|
|9|[[#Triggers overview]]|
|10|[[#Data overview]]|
|11|[[#URL]]|
|12|[[#History of actions]]|
|13|[[#History of events]]|
|14|[[#Status of hostgroup triggers]]|
|15|[[#System status]]|
|16|[[#Status of host triggers]]|
=== - XML format - available element tags ===
**Bold text** - mandatory tag for all elements;\\
Normal text - tag available for all elements;\\
//Italic text// - tag optionally available for some elements (see below for details).
* **** - identifies element type, as per the table above;
* //// - identifies resource, if applicable; depends of resource type;
* //// - element's width in pixels, if applicable;
* //// - element's height in pixels, if applicable;
* **** - element location on screen table by X axis (cell of the upper left corner);
* **** - element location on screen table by Y axis (cell of the upper left corner);
* - if higher than 1, sets count of columns to merge (to the right);
* - if higher than 1, sets count of rows to merge (down);
* //// - amount of rows to show, if applicable;
* - vertical align: **0** - middle, **1** - top, **2** - bottom;
* - horizontal align: **0** - centre, **1** - left, **2** - right;
* //
0
1
Zabbix server
zabbix[uptime]
500
90
0
1
0
0
0
0
0
0
14
Linux servers
500
100
1
1
0
0
25
0
0
0