Ad Widget

Collapse

Version Pre 1.7.0 Build 6836 -- Dashboard -ERROR: No permissions.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Version Pre 1.7.0 Build 6836 -- Dashboard -ERROR: No permissions.

    If a user that has limited rights to only certain groups gets "ERROR: No permissions." when trying to "Add" a graph, screen or map to their favorites view using the short menu.

    Note: This does not happen for user who have read-only access to everything but only users who have limited rights to only certain groups.

    For example:

    A user with access to a few groups does the following:

    1. In Monitoring -> Dashboards
    Clicks on the Menu in the "Favorite Graphs" panel to add a graph.

    Click image for larger version

Name:	Dashboard-Step1.GIF
Views:	1
Size:	4.7 KB
ID:	315035

    2. User Clicks on "Add Graph"

    Click image for larger version

Name:	Dashboard-Step-2.GIF
Views:	1
Size:	8.3 KB
ID:	315036

    3. Following message is displayed:

    Click image for larger version

Name:	Dashboard-Step-3.GIF
Views:	1
Size:	2.3 KB
ID:	315037

    This also happens for screens and map as well. Same behaviour also occurs when doing Bar Reports when selecting items with user having limited rights.

    User Defines in defines.inc.php file:
    Code:
    /* USER DEFINES */
    
            define('ZBX_LOGIN_ATTEMPTS',    5);
            define('ZBX_LOGIN_BLOCK',               30); // sec
    
            define('TRIGGERS_OPTION_DISABLED',              0);             // reserved
            define('TRIGGERS_OPTION_ONLYTRUE',              1);             // use 0 to disable
            define('TRIGGERS_OPTION_ALL',                   2);             // use 0 to disable
            define('TRIGGERS_OPTION_NOFALSEFORB',   0);             // use 0 to disable
    
            define('TRIGGER_FALSE_PERIOD',                  1800);  // 30min,  0 - disable
            define('TRIGGER_BLINK_PERIOD',                  1800);  // 30min,  0 - disable
    
            define('EVENTS_OPTION_DISABLED',                0);             //      reserved
            define('EVENTS_OPTION_NOEVENT',                 1);             //      use 0 to disable
            define('EVENTS_OPTION_ALL',                             2);             //      use 0 to disable
            define('EVENTS_OPTION_NOT_ACK',                 3);             //      use 0 to disable
            define('EVENTS_OPTION_ONLYTRUE_NOTACK', 4);             //      use 0 to disable
            define('EVENTS_OPTION_NOFALSEFORB',             5);             //  reserved for TRIGGERS_OPTION_NOFALSEFORB, to disable set TRIGGERS_OPTION_NOFALSEFORB to 0
    
            define('ZBX_MIN_PERIOD', 3600);                                 // ~1 hour
            define('ZBX_MAX_PERIOD', 12*31*24*3600);                // ~1 year
            define('ZBX_PERIOD_DEFAULT', ZBX_MIN_PERIOD);
    
            define('ZBX_DROPDOWN_FIRST_ENTRY',              0);             // 0 - NONE, 1 - ALL
            define('ZBX_DROPDOWN_FIRST_REMEMBER',   1);             // 0 - do NOT remember, 1 - do remember
    
            define('ZBX_DROPDOWN_FIRST_ENTRY_TR_STATUS',    1);     // 0 - NONE, 1 - ALL
    
            define('ZBX_DISABLE_MENU_CACHE',                0);             // set 1 to disable
    Last edited by Palmertree; 27-02-2009, 03:39.
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #2
    Here is the fix:

    Code:
    diff -ruN zabbix-original/frontends/php/include/page_header.php zabbix/frontends/php/include/page_header.php
    --- zabbix-original/frontends/php/include/page_header.php    2009-02-28 10:03:40.000000000 -0500
    +++ zabbix/frontends/php/include/page_header.php    2009-03-01 15:09:16.000000000 -0500
    @@ -160,7 +160,8 @@
                                 'sub_pages'=>array('report3.php','report7.php','chart_sla.php','chart5.php')
                             ),
                         array('url'=>'vtext.php'),
    -                    array('url'=>'chart3.php')
    +                    array('url'=>'chart3.php'),
    +                    array('url'=>'popup.php')
                         )
                     ),
             'cm'=>array(

    Comment

    • Silvery
      Junior Member
      Zabbix Certified Specialist
      • Oct 2008
      • 28

      #3
      I'm using Zabbix 1.6.4 and I had the same problem.
      But this patch works for me, thanks!
      Last edited by Silvery; 24-06-2009, 14:08.

      Comment

      Working...