4 Network maps
Overview
Network map export contains:
all related images
map structure - all map settings, all contained elements with their settings, map links and map link status indicators
Any host groups, hosts, triggers, other maps or other elements that may be related to the exported map are not exported. Thus, if at least one of the elements the map refers to is missing, importing it will fail.
Network map export/import is supported since Zabbix 1.8.2.
Exporting
To export network maps, do the following:
Go to: Monitoring → Maps
Mark the checkboxes of the network maps to export
Click on Export below the list
Depending on the selected format, maps are exported to a local file with a default name:
zabbix_export_maps.yaml - in YAML export (default option for export)
zabbix_export_maps.xml - in XML export
zabbix_export_maps.json - in JSON export
Importing
To import network maps, do the following:
Go to: Monitoring → Maps
Click on Import to the right
Select the import file
Mark the required options in import rules
Click on Import
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:
Rule | Description |
---|---|
Update existing | Existing maps will be updated with data taken from the import file. Otherwise they will not be updated. |
Create new | The import will add new maps using data from the import file. Otherwise it will not add them. |
If you uncheck both map options and check the respective options for images, images only will be imported. Image importing is only available to Super Admin users.
If replacing an existing image, it will affect all maps that are using this image.
Export format
Export to YAML:
---
zabbix_export:
version: "5.2"
date: "2020-08-06T08:20:27Z"
images:
- name: Zabbix_server_3D_(128)
imagetype: "1"
encodedImage: iVBORw0KGgoAAAANSUhEUgAAAIAAAAAbCAYAAAC0n4dLAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAx4SURBVGje7VppbFTXFT5vVm+DN2xjB2wGQsDgEGUjEJKwRAqiLG1UVShJ2x9JgxpVUX8kqpr+749Eyo9Uan40P6KilkZKURWCnbDEQOo4KEDACzEGYsfGZrzvntWe6ffdmTe82Z0UYiC58tV7896de8895zvfOeeOtVAoJPPdNE0rxmUH+i70begOufPaGPoR9Fr0j6H3gVtBKG2+AGC321cFg8HdEaNvQDffiHlvBUDPRUz005C11mw21wUCgbOheRL8ewMAvNySl5f3OK67Ika/e140f2sCpB9y1U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d5eKJJYPFKr2cI0MtRIwOYTWYly9KqpeK61qdO8njPg5rs7BwpX1QuQRhiARjEAUblu6tXe5WBliKn4Ny5uTly1+K7xOP2qLm8Pn/C7xEjqDrsYNlXii5JucUtv7q7Si7/ukuK/loqwYPBqEzUA8OjzgBcB3Kqk8BpPQkknW3btk3RU6QqEDOU7WaZCMN37djxrZMVlmNcnBSrn6fPpjhcooE4Nl3pyXecgwZh/c9NNaG81BsPZggKu92GubJi6vtU8+oHLunWpWw6uzCfoEHa2q7/vyZDkgJfJNYydP593z/xnfD5A6Pl4SNHsfeg+tzefikKaDoIx/n9YYAeqq1DWTmrytum5hZVdvh8scfjZnNYlrEJgtYrf5B14RfdKLvrnTI+Niy90hkFAPOiNWvWKBszjEX2NMlZTlAObN7ODTAR0n9gIQDs8LJixtPPPvuWPweHqweWRQwDKjPHxtK1AcTGTO2TEyczjqk7fESywDj0NLYPPjyUdnz/4JCca2rOMKYh47pHjn0iQRiLeisuqbieRKb5To7hh9Ls3LmNm0tzOArgBNkATviUchQOzM7fXMhQuB9CMv0v9Q8hQMifQNE/RRnlgAdNAQh5QEw1qDZEqnM6nd/6vzqIOnzfNDOHo+Q7rVHh8OxQ5lz+5jYyS4SlNITLczB4e8SxZ8Gg/0GFdOB/vxRJO0rrMWIAAAAASUVORK5CYII=
maps:
- name: Local network
width: "680"
height: "200"
label_type: "0"
label_location: "0"
highlight: "1"
expandproblem: "1"
markelements: "1"
show_unack: "0"
severity_min: "0"
show_suppressed: "0"
grid_size: "50"
grid_show: "1"
grid_align: "1"
label_format: "0"
label_type_host: "2"
label_type_hostgroup: "2"
label_type_trigger: "2"
label_type_map: "2"
label_type_image: "2"
label_string_host: ""
label_string_hostgroup: ""
label_string_trigger: ""
label_string_map: ""
label_string_image: ""
expand_macros: "1"
background: []
iconmap: []
urls: []
selements:
- elementtype: "0"
elements:
- host: Zabbix server
label: |-
{HOST.NAME}
{HOST.CONN}
label_location: "0"
x: "111"
"y": "61"
elementsubtype: "0"
areatype: "0"
width: "200"
height: "200"
viewtype: "0"
use_iconmap: "0"
selementid: "1"
icon_off:
name: Zabbix_server_3D_(128)
icon_on: []
icon_disabled: []
icon_maintenance: []
application: ""
urls: []
shapes:
- type: "0"
x: "0"
"y": "0"
width: "680"
height: "15"
text: '{MAP.NAME}'
font: "9"
font_size: "11"
font_color: "000000"
text_halign: "0"
text_valign: "0"
border_type: "0"
border_width: "0"
border_color: "000000"
background_color: ""
zindex: "0"
lines: []
links: []
...
Element tags
Element tag values are explained in the table below.
Element | Element property | Type | Range | Description |
---|---|---|---|---|
images | Root element for images. | |||
name | string | Unique image name. | ||
imagetype | integer | 1 - image 2 - background | Image type. | |
encodedImage | Base64 encoded image. | |||
maps | Root element for maps. | |||
name | string | Unique map name. | ||
width | integer | Map width, in pixels. | ||
height | integer | Map height, in pixels. | ||
label_type | integer | 0 - label 1 - host IP address 2 - element name 3 - status only 4 - nothing | Map element label type. | |
label_location | integer | 0 - bottom 1 - left 2 - right 3 - top | Map element label location by default. | |
highlight | integer | 0 - no 1 - yes | Enable icon highlighting for active triggers and host statuses. | |
expandproblem | integer | 0 - no 1 - yes | Display problem trigger for elements with a single problem. | |
markelements | integer | 0 - no 1 - yes | Highlight map elements that have recently changed their status. | |
show_unack | integer | 0 - count of all problems 1 - count of unacknowledged problems 2 - count of acknowledged and unacknowledged problems separately | Problem display. | |
severity_min | integer | 0 - not classified 1 - information 2 - warning 3 - average 4 - high 5 - disaster | Minimum trigger severity to show on the map by default. | |
show_suppressed | integer | 0 - no 1 - yes | Display problems which would otherwise be suppressed (not shown) because of host maintenance. | |
grid_size | integer | 20, 40, 50, 75 or 100 | Cell size of a map grid in pixels, if “grid_show=1” | |
grid_show | integer | 0 - yes 1 - no | Display a grid in map configuration. | |
grid_align | integer | 0 - yes 1 - no | Automatically align icons in map configuration. | |
label_format | integer | 0 - no 1 - yes | Use advanced label configuration. | |
label_type_host | integer | 0 - label 1 - host IP address 2 - element name 3 - status only 4 - nothing 5 - custom label | Display as host label, if “label_format=1” | |
label_type_hostgroup | integer | 0 - label 2 - element name 3 - status only 4 - nothing 5 - custom label | Display as host group label, if “label_format=1” | |
label_type_trigger | integer | 0 - label 2 - element name 3 - status only 4 - nothing 5 - custom label | Display as trigger label, if “label_format=1” | |
label_type_map | integer | 0 - label 2 - element name 3 - status only 4 - nothing 5 - custom label | Display as map label, if “label_format=1” | |
label_type_image | integer | 0 - label 2 - element name 4 - nothing 5 - custom label | Display as image label, if “label_format=1” | |
label_string_host | string | Custom label for host elements, if “label_type_host=5” | ||
label_string_hostgroup | string | Custom label for host group elements, if “label_type_hostgroup=5” | ||
label_string_trigger | string | Custom label for trigger elements, if “label_type_trigger=5” | ||
label_string_map | string | Custom label for map elements, if “label_type_map=5” | ||
label_string_image | string | Custom label for image elements, if “label_type_image=5” | ||
expand_macros | integer | 0 - no 1 - yes | Expand macros in labels in map configuration. | |
background | id | ID of the background image (if any), if “imagetype=2” | ||
iconmap | id | ID of the icon mapping (if any). | ||
urls | ||||
name | string | Link name. | ||
url | string | Link URL. | ||
elementtype | integer | 0 - host 1 - map 2 - trigger 3 - host group 4 - image | Map item type the link belongs to. | |
selements | ||||
elementtype | integer | 0 - host 1 - map 2 - trigger 3 - host group 4 - image | Map element type. | |
label | string | Icon label. | ||
label_location | integer | -1 - use map default 0 - bottom 1 - left 2 - right 3 - top | ||
x | integer | Location on the X axis. | ||
y | integer | Location on the Y axis. | ||
elementsubtype | integer | 0 - single host group 1 - all host groups | Element subtype, if “elementtype=3” | |
areatype | integer | 0 - same as whole map 1 - custom size | Area size, if “elementsubtype=1” | |
width | integer | Width of area, if “areatype=1” | ||
height | integer | Height of area, if “areatype=1” | ||
viewtype | integer | 0 - place evenly in the area | Area placement algorithm, if “elementsubtype=1” | |
use_iconmap | integer | 0 - no 1 - yes | Use icon mapping for this element. Relevant only if iconmapping is activated on map level. | |
selementid | id | Unique element record ID. | ||
application | string | Application name filter. If an application name is given, only problems of triggers that belong to the given application will be displayed on the map. | ||
elements | Zabbix entities that are represented on the map (host, host group, map etc). | |||
host | ||||
icon_off | Image to use when element is in ‘OK’ status. | |||
icon_on | Image to use when element is in ‘Problem’ status. | |||
icon_disabled | Image to use when element is disabled. | |||
icon_maintenance | Image to use when element is in maintenance. | |||
name | string | Unique image name. | ||
links | Links between map elements. | |||
drawtype | integer | 0 - line 2 - bold line 3 - dotted line 4 - dashed line | Link style. | |
color | string | Link color (6 symbols, hex). | ||
label | string | Link label. | ||
selementid1 | id | ID of one element to connect. | ||
selementid2 | id | ID of the other element to connect. | ||
linktriggers | Link status indicators. | |||
drawtype | integer | 0 - line 2 - bold line 3 - dotted line 4 - dashed line | Link style when trigger is in the ‘Problem’ state. | |
color | string | Link color (6 symbols, hex) when trigger is in the ‘Problem’ state. | ||
trigger | Trigger used for indicating link status. | |||
description | string | Trigger name. | ||
expression | string | Trigger expression. | ||
recovery_expression | string | Trigger recovery expression. |