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.
In left bottom corner a selection box is available with two options: "Export selected" and "Delete selected".
To export screens:
Importing screens is as easy as exporting them. On the top right corner near "Create Screen" button, you will find new button - "Import Screen".
To import screens:
|<| |<| |-|
Only screen structure is exported. That includes all screen settings are and all screen elements along with their configuration.
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:
Screen export consists of screen definition itself and any additional elements.
<screens>
<screen>
<name>Screen name</name>
<hsize>1</hsize>
<vsize>2</vsize>
<screenitems>
<screenitem></screenitem>
...
<screenitem></screenitem>
</screenitems>
</screen>
</screens>
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 |
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).
If <resourceid> refers to an object by name, it can have subtags. If data is exported from a distributed setup installation, node will always be identified by name:
For example, #Simple graph <resourceid> entry from a non-distributed setup would look like this:
In a distributed setup, it becomes:
<resourceid>
<node>Zabbix node</node>
<host>Zabbix server</host>
<key_>system.cpu.load</key_>
</resourceid>
Individual object references are listed at each element.
Each individual element must have mandatory tags from the previous section and may have tags that are available for all elements. If there are additional tags available for the specific element, they are listed here.
Resource type 7. Additional tags:
Resource type 10. Additional tags:
Available <resourceid> contents:
Resource type 0. Additional tags:
Available <resourceid> contents:
Resource type 12. Additional tags:
Resource type 13. Additional tags:
Resource type 4. Additional tags:
Available <resourceid> contents:
Resource type 2. Additional tags:
Available <resourceid> contents:
Resource type 3. Additional tags:
Available <resourceid> contents:
Resource type 8. Additional tags:
Available <resourceid> contents:
Resource type 6. No additional tags available.
Resource type 1. Additional tags:
Available <resourceid> contents:
Resource type 16. Additional tags:
Available <resourceid> contents:
Resource type 14. Additional tags:
Available <resourceid> contents:
Resource type 15. No additional tags available.
Resource type 5. Additional tags:
Available <resourceid> contents:
Resource type 9. Additional tags:
Available <resourceid> contents:
Resource type 11. Additional tags:
The following is a simple screen (2x2), exported to XML. It contains one custom graph in upper left cell (spanning two columns), one simple graph in the lower left cell and trigger status element, filtered for a hostgroup, in the lower right cell. Notice the encoding of & as &.
<?xml version="1.0" encoding="UTF-8"?>
<screens>
<screen>
<name>Excellent screen</name>
<hsize>2</hsize>
<vsize>2</vsize>
<screenitems>
<screenitem>
<resourcetype>0</resourcetype>
<resourceid>
<host>Zabbix server</host>
<name>CPU Load & traffic</name>
</resourceid>
<width>1000</width>
<height>100</height>
<x>0</x>
<y>0</y>
<colspan>2</colspan>
<rowspan>0</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<dynamic>0</dynamic>
</screenitem>
<screenitem>
<resourcetype>1</resourcetype>
<resourceid>
<host>Zabbix server</host>
<key_>zabbix[uptime]</key_>
</resourceid>
<width>500</width>
<height>90</height>
<x>0</x>
<y>1</y>
<colspan>0</colspan>
<rowspan>0</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<dynamic>0</dynamic>
</screenitem>
<screenitem>
<resourcetype>14</resourcetype>
<resourceid>
<name>Linux servers</name>
</resourceid>
<width>500</width>
<height>100</height>
<x>1</x>
<y>1</y>
<colspan>0</colspan>
<rowspan>0</rowspan>
<elements>25</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<dynamic>0</dynamic>
</screenitem>
</screenitems>
</screen>
</screens>