Changes between Version 1 and Version 2 of OMD


Ignore:
Timestamp:
08/18/21 15:59:47 (3 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OMD

    v1 v2  
    22
    33 * [wiki:rrdtool rrdtool]
     4 ref from [https://www.thruk.org/documentation/menu.html here]
     5
     6Create menu_local.conf under /etc/thruk/
     7{{{
     8#!sh
     9OMD[demo@a36aee5c525e]:~/etc/thruk$ pwd
     10/omd/sites/demo/etc/thruk
     11OMD[demo@a36aee5c525e]:~/etc/thruk$ cat menu_local.conf
     12do '/usr/share/thruk/menu.conf';
     13
     14remove_item('Reports');
     15remove_item('General', 'Panorama View');
     16remove_item('System', 'Configuration');
     17
     18add_section('name' => 'General');
     19  add_link('name' => 'Home', 'href' => '/thruk/main.html');
     20  add_link('name' => 'Logout', 'href' => $c->config->{'logout_link'}, 'target' => "_parent") if($c->stash->{'cookie_auth'});
     21
     22add_section('name' => 'Current Status');
     23  add_link('name' => 'Hosts',                 'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&style=hostdetail');
     24  add_link('name' => 'Services',              'href' => '/thruk/cgi-bin/status.cgi?host=all');
     25  add_search('name' => 'Quick Search:');
     26
     27add_section('name' => 'Logs');
     28  add_link('name' => 'Event Log', 'href' => '/thruk/cgi-bin/showlog.cgi');
     29  add_link('name' => "Test submenu",  'href' => 'https://171.100.112.174:5688/demo/test3.html');
     30
     31add_section('name' => 'System');
     32  add_link('name' => 'Configuration',     'href' => '/thruk/cgi-bin/config.cgi') if has_role('authorized_for_system_information', 'authorized_for_configuration_information');
     33 
     34#insert_item('NewItem', { 'href' => '/thruk/frame.html/http://172.17.0.2', 'name' => 'Company' }, 'target' => '_parent');
     35
     36OMD[demo@a36aee5c525e]:~/etc/thruk$
     37}}}