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

Host cannont be cloned or exported if its items depend on discovered items

    XMLWordPrintable

    Details

      Description

      Steps to reproduce:
      1. Create discovery rule on host with item prototypes.
      2. Wait until items on host are discovered.
      3. Create item on this host dependent on discovered item.
      4. Try to clone this host.

      Result:

      Cannot add host
      
          Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:599]
          Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:599]
          Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:666]
          Undefined offset: 43495 [hosts.php:709 → copyItems() in include/items.inc.php:672]
          Undefined index: [hosts.php:709 → copyItems() in include/items.inc.php:673]
          Incorrect value for field "master_itemid": cannot be empty.

      Expected:
      In this case host cloning, exporting, etc.. should be handled in way not to copy discovered and dependent items

        Attachments

          Activity

            People

            Assignee:
            zabbix.dev Zabbix Development Team
            Reporter:
            larisa.grigorjeva Larisa Grigorjeva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: