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

Inventory field conflict when importing template with changed item key

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Minor
    • Resolution: Unresolved
    • 5.4.4, 5.4.6
    • None
    • Frontend (F), Templates (T)
    • None

    Description

      Given the following template that has been imported:

      zabbix_export:
        version: '5.4'
        date: '2021-10-13T08:10:37Z'
        groups:
          -
            uuid: 7df96b18c230490a9a0a9e2307226338
            name: Templates
        templates:
          -
            uuid: 6ae1386dc0b343618f32fa5c505d9da6
            template: 'Template A'
            name: 'Template A'
            groups:
              -
                name: Templates
            items:
              -
                uuid: 4a071e749cb347478404a37c4f5eaf45
                name: 'Test item'
                type: SCRIPT
                key: test.item_a
                history: 14d
                trends: '0'
                value_type: TEXT
                params: 'return "a";'
                inventory_link: NAME
      

      When you change the key for the item, and try to import it again, Zabbix returns the error:

      Two items ("Test item" and "Test item") cannot populate one host inventory field "Name", this would lead to a conflict.

      I would expect it to be possible to change the key of an item that has an inventory field selected.

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            kdaudt Kevin Daudt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: