-
Problem report
-
Resolution: Duplicate
-
Major
-
None
-
3.4.9
-
None
-
None
Mass update like change history period on dependent items fails with error.
To reproduce
- take any template with dependent items
- mark some dependent item(s)
- 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.
- duplicates
-
ZBX-14356 Mass update failed for dependent items
- Closed