Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-25365

corrupted .yaml export of network maps in 6.0 LTS

XMLWordPrintable

    • Sprint candidates

      Hello,
      I've find that sometimes when Zabbix network map is exported, YAML file of exported map is corrupted. Problem is mainly related to "elementtype = '2'", so to triggers on network maps - Sometimes when map is exported, tag which includes "elementtype = '2'" is broken:
      This is "good" export:

      selements: 
       - elementtype: '2'
                elements:
                  - description: 'lorem ipsum'
                    expression: 'last(/lorem ipsum/lorem ipsum[lorem ipsum])=1'
                    recovery_expression: ''

      But, sometimes exported file looks like that:

       selements:
              -
                elementtype: '2'
                label: |
                  lorem ipsum
                 lorem ipsum: {?last(/lorem ipsum/lorem ipsum[lorem ipsum])}
                  lorem ipsum: {?last(/lorem ipsum/lorem ipsum[lorem ipsum])}
                label_location: '-1'

      As you can see, under tag elementtype: '2' we have missing whole section elements, missing are: "description", "expression" and "recovery_expression"
       
      Steps to reproduce:

      TBA, currently unknown
      **

      Result:
      See above
      **

      Expected:
      Export of .yaml maps working correctly

            zabbix.dev Zabbix Development Team
            tgrzechulski Tomasz Grzechulski
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: