Ad Widget

Collapse

Menu for guests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • duy
    Junior Member
    • Jan 2016
    • 5

    #1

    Menu for guests

    Hi,

    I was wondering is it possible to configure Zabbix in a manager where Admin user can see/access all menu's while guest user can see only "Maps" in Zabbix menu while hiding all other menu's.

    Thanks
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by duy
    Hi,

    I was wondering is it possible to configure Zabbix in a manager where Admin user can see/access all menu's while guest user can see only "Maps" in Zabbix menu while hiding all other menu's.

    Thanks
    i dont think there is.

    Comment

    • duy
      Junior Member
      • Jan 2016
      • 5

      #3
      I got it

      Here's what I did.

      I open the file "menu.inc.php" in folder "/usr/share/zabbix/include"

      Make backup before edit file.

      I change this line in bold, from USER to ADMIN

      $ZBX_MENU = array(
      'view' => array(
      'label' => _('Monitoring'),
      'user_type' => USER_TYPE_ZABBIX_ADMIN,
      'default_page_id' => 0,
      'pages' => array(


      I have removed the following lines from the 'Monitoring' session



      array(
      'url' => 'maps.php',
      'label' => _('Maps'),
      'sub_pages' => array('map.php')
      ),



      array(
      'url' => 'srv_status.php',
      'label' => _('IT services'),
      'sub_pages' => array('report3.php', 'chart5.php')
      ),


      I created one new menu like this, before this line


      "'reports' => array("


      //New menu STATUS TI

      'statusti' => array(
      'label' => _('STATUS TI'),
      'user_type' => USER_TYPE_ZABBIX_USER,
      'default_page_id' => 0,
      'pages' => array(
      array(
      'url' => 'maps.php',
      'label' => _('Maps'),
      'sub_pages' => array('map.php')
      ),
      array(
      'url' => 'srv_status.php',
      'label' => _('IT services'),
      'sub_pages' => array('report3.php', 'chart5.php')
      ),

      )
      ),


      //end new menu



      The new menu will appear next to the default menus for ADMIN and when the user is not ADMIN will only appear the "STATUS TI" menu that contains the "MAPS" and "TI Services" submenus.

      My Zabbix is version 2.4

      -------- Never give up your dreams! ----------------
      Last edited by duy; 18-01-2017, 17:12.

      Comment

      Working...