ZABBIX Forums  
  #1  
Old 20-02-2012, 23:26
tool tool is offline
Junior Member
 
Join Date: Apr 2011
Posts: 2
Default Zabbix 1.8.6 API screen.delete permission failure

Hi gyus.

I try to work with ruby [https://github.com/verm666] libs for Zabbix api, but sinse 1.8.6 there are some changes in API i modify some defs, and i have a problem with Deleting screen, in 1.8.4 i can simple remove all graphs from screen, now i need to delete screen, and create new screen which i populate with graps [Thx for it ] anyway in def del_all_graphs_from_screen(screen_id)
i remake message to this:

Code:
······message = { 
········'method' => 'screen.delete',
········'params' => {
··········'screenids' => [ screen_id ]
········}
······}
so i try to send screen.delete using my api user (it's working for all other operations, mass link template (also hellobug https://support.zabbix.com/browse/ZBX-3589), get templates and oth) but i received error
Code:
Zabbix::ResponseError: Code: [-32500]. Message: [Application error.]. Data: [[ CScreen::delete ] You do not have permission to perform this operation].
I'm not php pro, i think there are some eror in API class, maybe someone can help me with this API method error?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:57.