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

Zabbix API screen.update permission issue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 1.8.8, 1.8.9, 1.8.10
    • API (A)
    • LinuxKernel 2.6.32 (Debian) PHP 5.3.8-1~dotdeb.2

      I have class
      def add_graph_to_screen(screen_id, graph_id, x, y)

      message = {
      'method' => 'screen.update',
      'params' => {
      'screenid' => screen_id,
      'screenitems' => [

      { 'resourcetype' => 'graph', 'resourceid' => graph_id, 'width' => '800', 'height' => '200', 'x' => x, 'y' => y, 'valign' => 'Middle', 'halign' => 'Centre', 'colspan' => '0', 'rowspan' => '0', 'elements' => '0', 'dynamic' => '0', 'url' => '0', 'style' => '0' }

      ]
      }
      }

      Using
      zbx.add_graph_to_screen(screen_id, id, x, y)
      y += 1

      where id incremental changed for my host i can't update my screen due permission issue.
      Message: [Application error.]. Data: [[ CScreen::update ] You do not have permission to perform this operation].

      Alsi i can't delete

      Actually i need this:

      Create screen with hostname of my monitored host, and settled it with my graphs. I delete screen, create screen - it's ok, but when u try to update screen with graphs i get wroted issue. Maybe i'm doing something wrong, but i can't realize to screen.screate with incremental of y value, because after first settle of first graph at second step i get message, screen already created.

            Unassigned Unassigned
            tool Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: