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

Mass update on dependent items fails with error

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.4.9
    • None
    • None

      Mass update like change history period on dependent items fails with error.

      To reproduce

      1. take any template with dependent items
      2. mark some dependent item(s)
      3. do mass update charging for example history period

      In my case I've been using template https://raw.githubusercontent.com/kloczek/zabbix-templates/master/Service%20Nginx/Service%20Nginx.xml

      On mass update (just marking only one item) on the web page I have:

      - Undefined index: master_itemid [items.php:999 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CItem->update() → CItem->inherit() → CItemGeneral->inheritDependentItems() in include/classes/api/services/CItemGeneral.php:1634]
      - Error in query [SELECT itemid,key_,hostid FROM items WHERE itemid=] [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
      - Undefined index: master_itemid [items.php:999 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CItem->update() → CItem->inherit() → CItemGeneral->inheritDependentItems() in include/classes/api/services/CItemGeneral.php:1651]
      - Undefined index: [items.php:999 → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → CItem->update() → CItem->inherit() → CItemGeneral->inheritDependentItems() in include/classes/api/services/CItemGeneral.php:1651]

      I think that most of the mass update operations may be not relevant in case of dependent items so probably it would be good to do full test of mass update all types of changes using API.

       

            Unassigned Unassigned
            kloczek Tomasz Kłoczko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: