5 Screens

Overview

Screen export contains the screen structure - all screen settings and all screen elements along with their configuration.

Anything included in the screen itself (like a host, host group or any other data) is not exported. Thus, if at least one of the elements the screen refers to is missing, importing it will fail.

Exporting

To export screens, do the following:

  • Go to: MonitoringScreens

  • Mark the checkboxes of the screens to export

  • Click on Export below the list

5 Screens - 图1

Selected screens are exported to a local XML file with default name zabbix_export_screens.xml.

Importing

To import screens, do the following:

  • Go to: MonitoringScreens

  • Click on Import to the right

  • Select the import file

  • Mark the required options in import rules

  • Click on Import

5 Screens - 图2

All mandatory input fields are marked with a red asterisk.

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

Import rules:

RuleDescription
Update existingExisting screens will be updated with data taken from the import file. Otherwise they will not be updated.
Create newThe import will add new screens using data from the import file. Otherwise it will not add them.

Export format

Exporting a small screen with two graphs taking up the first row of the screen.

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3. <version>5.0</version>
  4. <date>2020-04-22T09:22:17Z</date>
  5. <screens>
  6. <screen>
  7. <name>Zabbix server</name>
  8. <hsize>2</hsize>
  9. <vsize>3</vsize>
  10. <screen_items>
  11. <screen_item>
  12. <resourcetype>0</resourcetype>
  13. <width>300</width>
  14. <height>80</height>
  15. <x>0</x>
  16. <y>0</y>
  17. <colspan>1</colspan>
  18. <rowspan>1</rowspan>
  19. <elements>0</elements>
  20. <valign>0</valign>
  21. <halign>0</halign>
  22. <style>0</style>
  23. <url/>
  24. <dynamic>1</dynamic>
  25. <sort_triggers>0</sort_triggers>
  26. <resource>
  27. <name>CPU load</name>
  28. <host>Zabbix host</host>
  29. </resource>
  30. <max_columns>3</max_columns>
  31. <application/>
  32. </screen_item>
  33. <screen_item>
  34. <resourcetype>0</resourcetype>
  35. <width>300</width>
  36. <height>80</height>
  37. <x>1</x>
  38. <y>0</y>
  39. <colspan>1</colspan>
  40. <rowspan>1</rowspan>
  41. <elements>0</elements>
  42. <valign>0</valign>
  43. <halign>0</halign>
  44. <style>0</style>
  45. <url/>
  46. <dynamic>1</dynamic>
  47. <sort_triggers>0</sort_triggers>
  48. <resource>
  49. <name>CPU utilization</name>
  50. <host>Zabbix host</host>
  51. </resource>
  52. <max_columns>3</max_columns>
  53. <application/>
  54. </screen_item>
  55. </screen_items>
  56. </screen>
  57. </screens>
  58. </zabbix_export>

Element tags

Element tag values are explained in the table below.

ElementElement propertyTypeRangeDescription
screens
screen
namestringUnique screen name.
hsizeintegerHorizontal size, number of columns.
vsizeintegerVertical size, number of rows.
screen_items
screen_item
resourcetypeinteger0 - graph
1 - simple graph
2 - map
3 - plain text
4 - host info
5 - trigger info
6 - server info
7 - clock
9 - trigger overview
10 - data overview
11 - URL
12 - history of actions
13 - history of events
14 - host group issues
15 - problems by severity
16 - host issues
19 - simple graph prototype
20 - graph prototype
Resource type.
widthintegerWidth of the screen item (in pixels) if ‘resourcetype’ is 0, 1, 7, 11, 19 or 20.
heightintegerHeight of the screen item (in pixels) if ‘resourcetype’ is 0, 1, 7, 11, 19 or 20.
xintegerX-coordinates of the screen item on the screen, from left to right.
‘0’ means start from first column.
yintegerY-coordinates of the screen item on the screen, from top to bottom.
‘0’ means start from first row.
colspanintegerNumber of columns the screen item will span across.
rowspanintegerNumber or rows the screen item will span across.
elementsintegerNumber of lines to display on the screen item if ‘resourcetype’ is 3, 12, 13, 14 or 16.
valigninteger0 - middle (default)
1 - top
2 - bottom
Vertical alignment.
haligninteger0 - center (default)
1 - left
2 - right
Horizontal alignment.
styleinteger0 - plain text
1 - HTML
Option of displaying screen item if ‘resourcetype’ is 3.
integer0 - local time
1 - server time
2 - host time
Option of displaying screen item if ‘resourcetype’ is 7.
integer0 - horizontal
1 - vertical
Option of displaying screen item if ‘resourcetype’ is 4,5.
integer0 - left side
1 - top
Option of displaying screen item if ‘resourcetype’ is 9,10.
urlstringLink URL if ‘resourcetype’ is 11.
dynamicinteger0 - no
1 - yes
Make screen item dynamic if ‘resourcetype’ is 0, 1, 3, 19 or 20.
sort_triggersinteger0 - last change (descending)
1 - severity (descending)
2 - host (ascending)
Option to sort triggers by if ‘resourcetype’ is 14,16.
integer3 - time (ascending)
4 - time (descending)
5 - type (ascending)
6 - type (descending)
7 - status (ascending)
8 - status (descending)
9 - retries left (ascending)
10 - retries left (descending)
11 - recipient (ascending)
12 - recipient (descending)
Option to sort triggers by if ‘resourcetype’ is 12.
max_columnsintegerIn how many columns generated graphs should be displayed in the screen cell if ‘resourcetype’ is 19 or 20.
Useful when there are many LLD-generated graphs.
applicationstringFilter by application name if ‘resourcetype’ is 9 or 10.
resource
namestringResource name.
hoststringResource host.