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

Cannot use dependent item for item prototype

    XMLWordPrintable

Details

    • Problem report
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.0.30, 4.0.31
    • 4.0.32rc2, 6.0 (plan)
    • Frontend (F)
    • None
    • Team B
    • Sprint 77 (Jun 2021)
    • 1

    Description

      Cannot import template for 4.0.30 and 4.0.31. It works on 4.0.29.

      cannot-dependent-item-for-item-prototype.xml

      While importing template, it tells:

      Undefined index: ruleid [conf.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createEntitiesWithDependency() → CItemPrototype->create() → CItemPrototype->createReal() in include/classes/api/services/CItemPrototype.php:408]
      Field "parent_itemid" cannot be set to NULL. [conf.import.php:166 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CConfiguration->import() → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CConfigurationImport->createEntitiesWithDependency() → CItemPrototype->create() → CItemPrototype->createReal() → DB::insertBatch() → DB::checkValueTypes() → DB::exception() in include/classes/db/DB.php:329]
      

      Another way to see the issue, when developing a template from scratch:

      1) create a new template

      2) create one text item which is supposed to receive a JSON content

      3) create an LLD rule

      4) create an item prototype and trying to link it with "pure item", it will say:

      Undefined index: ruleid [disc_prototypes.php:605 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CItemPrototype->create() → CItemPrototype->createReal() in include/classes/api/services/CItemPrototype.php:408]
      Field "parent_itemid" cannot be set to NULL. [disc_prototypes.php:605 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CItemPrototype->create() → CItemPrototype->createReal() → DB::insertBatch() → DB::checkValueTypes() → DB::exception() in include/classes/db/DB.php:329]
      

      Attachments

        Issue Links

          Activity

            People

              sasha Alexander Vladishev
              aigars.kadikis Aigars Kadikis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: