I try to delete items from a screen. I'm not sure about how to do it, http dump :
10: json_obj: {'params':
{'pattern': 'Test screen 3', 'extendoutput': True, 'select_screenitems': True, 'output': 'extend'}, 'jsonrpc': '2.0', 'method': 'screen.get', 'auth': u'63873e01762e166e0b1da815599a8f9f', 'id': 7}
10: Connection object <httplib.HTTPConnection instance at 0x7958e18>
20: Sending: {"params":
, "jsonrpc": "2.0", "method": "screen.get", "auth": "63873e01762e166e0b1da815599a8f9f", "id": 7}
10: Sending headers:
20: Response Code: 200 OK
10: Response Body: {u'jsonrpc': u'2.0', u'result': [{u'screenid': u'7', u'screenitems': [
,
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'390', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'70', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'0', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'391', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'71', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'1', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'392', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'72', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'1', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'393', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'73', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'2', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'394', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'74', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'2', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'395', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'75', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'3', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'396', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'76', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'3', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'397', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'77', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'4', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'398', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'78', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'4', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'399', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'79', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'5', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'400', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'80', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'5', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'401', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'81', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'6', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'402', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'82', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'6', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'403', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'83', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'7', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'404', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'84', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'7', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'405', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'85', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'8', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'406', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'86', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'8', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'407', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'87', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'9', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'408', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'88', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'9', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'409', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'89', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'10', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'410', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'90', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'10', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'411', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'91', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'11', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'412', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'92', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'11', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'413', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'93', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'12', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'414', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'94', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'12', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'415', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'95', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'13', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'416', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'96', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'13', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'417', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'97', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'14', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'418', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'98', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'14', u'x': u'1'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'419', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'99', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'15', u'x': u'0'},
{u'style': u'0', u'rowspan': u'0', u'halign': u'0', u'resourcetype': u'0', u'resourceid': u'420', u'screenid': u'7', u'dynamic': u'0', u'url': u'', u'screenitemid': u'100', u'height': u'200', u'width': u'320', u'elements': u'25', u'valign': u'0', u'colspan': u'0', u'y': u'15', u'x': u'1'}], u'vsize': u'25', u'name': u'Test screen 3', u'hsize': u'2'}], u'id': 7}
10: json_obj: {'params':
, 'jsonrpc': '2.0', 'method': 'screen.updateItems', 'auth': u'63873e01762e166e0b1da815599a8f9f', 'id': 8}
10: Connection object <httplib.HTTPConnection instance at 0x7f5e971d9050>
20: Sending: {"params":
, "jsonrpc": "2.0", "method": "screen.updateItems", "auth": "63873e01762e166e0b1da815599a8f9f", "id": 8}
10: Sending headers:
20: Response Code: 500 Internal Server Error
The log in apache logs :
[Thu Jun 03 15:43:41 2010] [error] [client 10.2.23.254] PHP Fatal error: Uncaught exception 'APIException' in /srv/src/zabbix/ZBX-2469cscreen/frontends/php/api/classes/class.czbxapi.php:155\nStack trace:\n#0 /srv/src/zabbix/>execute(Array)\n#8 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/classes/class.cscreen.php(540): CZBXAPI::exception(120, 4)\n#1 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/classes/class.cscreen.php(779): CScreen::checkItems(Array)\n#2 [internal function]: CScreen::updateItems(Array)\n#3 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/rpc/class.czbxrpc.php(315): call_user_func(Array, Array)\n#4 [internal function]: czbxrpc::screen('updateItems', Array)\n#5 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/rpc/class.czbxrpc.php(102): call_user_func(Array, 'updateItems', Array)\n#6 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/rpc/class.cjsonrpc.php(106): czbxrpc::call('screen.updateIt...', Array, 'c5fdc329d98167a...')\n#7 /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/rpc/class.cjsonrpc.php(58): CJSONrpcZBX-2469-cscreen/frontends/php/api_jsonrpc in /srv/src/zabbix/ZBX-2469-cscreen/frontends/php/api/classes/class.czbxapi.php on line 155