wiki:OMD

Version 2 (modified by krit, 3 years ago) (diff)

--

OMD

Create menu_local.conf under /etc/thruk/

OMD[demo@a36aee5c525e]:~/etc/thruk$ pwd
/omd/sites/demo/etc/thruk
OMD[demo@a36aee5c525e]:~/etc/thruk$ cat menu_local.conf 
do '/usr/share/thruk/menu.conf';

remove_item('Reports');
remove_item('General', 'Panorama View');
remove_item('System', 'Configuration');

add_section('name' => 'General');
  add_link('name' => 'Home', 'href' => '/thruk/main.html');
  add_link('name' => 'Logout', 'href' => $c->config->{'logout_link'}, 'target' => "_parent") if($c->stash->{'cookie_auth'});

add_section('name' => 'Current Status');
  add_link('name' => 'Hosts',                 'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail');
  add_link('name' => 'Services',              'href' => '/thruk/cgi-bin/status.cgi?host=all');
  add_search('name' => 'Quick Search:');

add_section('name' => 'Logs');
  add_link('name' => 'Event Log', 'href' => '/thruk/cgi-bin/showlog.cgi');
  add_link('name' => "Test submenu",  'href' => 'https://171.100.112.174:5688/demo/test3.html');

add_section('name' => 'System');
  add_link('name' => 'Configuration',     'href' => '/thruk/cgi-bin/config.cgi') if has_role('authorized_for_system_information', 'authorized_for_configuration_information');
  
#insert_item('NewItem', { 'href' => '/thruk/frame.html/http://172.17.0.2', 'name' => 'Company' }, 'target' => '_parent');

OMD[demo@a36aee5c525e]:~/etc/thruk$ 

Attachments (1)

Download all attachments as: .zip