###########################################################
#
# to adjust the menu configuration, copy this file to
# "menu_local.conf" and change it to your needs
#
###########################################################

use utf8;

add_section('name' => 'General');
  add_link('name' => 'Home', 'href' => '/thruk/main.html');
  add_link('name' => 'Documentation', 'href' => "/thruk/frame.html?link=".Thruk::Utils::Filter::escape_html($c->stash->{'documentation_link'}), 'target' => "_parent") if($c->stash->{'documentation_link'});
  add_link('name' => 'Logout', 'href' => "/thruk/cgi-bin/login.cgi?logout", 'target' => "_parent") if($c->stash->{'cookie_auth'});


add_section('name' => 'Current Status');
  add_link('name' => 'Tactical Overview',     'href' => '/thruk/cgi-bin/tac.cgi');
  add_link('name' => 'Map',                   'href' => '/thruk/cgi-bin/statusmap.cgi?host=all') if $c->config->{'use_feature_statusmap'};
  add_link('name' => 'Hosts',                 'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail');
  add_link('name' => 'Services',              'href' => '/thruk/cgi-bin/status.cgi?host=all');
  add_link('name' => 'Host Groups',           'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=overview');
    add_sub_link('name' => 'Summary',         'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=summary');
    add_sub_sub_link('name' => 'Grid',        'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=grid');
  add_link('name' => 'Service Groups',        'href' => '/thruk/cgi-bin/status.cgi?servicegroup=all&amp;style=overview');
    add_sub_link('name' => 'Summary',         'href' => '/thruk/cgi-bin/status.cgi?servicegroup=all&amp;style=summary');
    add_sub_sub_link('name' => 'Grid',        'href' => '/thruk/cgi-bin/status.cgi?servicegroup=all&amp;style=grid');
  add_link('name' => 'Business View',         'href' => '/thruk/cgi-bin/businessview.cgi') if $c->stash->{'enable_shinken_features'};
  add_link('name' => 'Problems',              'href' => $c->{'stash'}->{'all_problems_link'});
    add_sub_link('name' => 'Services',        'href' => '/thruk/cgi-bin/status.cgi?host=all&amp;servicestatustypes=28');
      add_sub_sub_link('name' => 'Unhandled', 'href' => '/thruk/cgi-bin/status.cgi?host=all&amp;type=detail&amp;hostprops=10&amp;serviceprops=42&amp;servicestatustypes=28');
    add_sub_link('name' => 'Hosts',           'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail&amp;hoststatustypes=12');
      add_sub_sub_link('name' => 'Unhandled', 'href' => '/thruk/cgi-bin/status.cgi?hostgroup=all&amp;style=hostdetail&amp;hoststatustypes=12&amp;hostprops=42');
    add_sub_link('name' => 'Network Outages', 'href' => '/thruk/cgi-bin/outages.cgi');
    add_sub_link('name' => 'Root Problems',   'href' => '/thruk/cgi-bin/outagespbimp.cgi') if $c->stash->{'enable_shinken_features'};

  add_search('name' => 'Quick Search:');


add_section('name' => 'Reports');
  add_link('name' => 'Availability',      'href' => '/thruk/cgi-bin/avail.cgi');
  add_link('name' => 'Trends',            'href' => '/thruk/cgi-bin/trends.cgi') if $c->stash->{'use_feature_trends'};
  add_link('name' => 'Alerts',            'href' => '/thruk/cgi-bin/history.cgi?host=all');
    add_sub_link( 'name' => 'History',    'href' => '/thruk/cgi-bin/history.cgi?host=all');
      add_sub_sub_link('name' => 'Summary',     'href' => '/thruk/cgi-bin/summary.cgi');
  add_link('name' => 'Histogram',         'href' => '/thruk/cgi-bin/histogram.cgi') if $c->stash->{'use_feature_histogram'};
  add_link('name' => 'Notifications',     'href' => '/thruk/cgi-bin/notifications.cgi?contact=all');
  add_link('name' => 'Event Log',         'href' => '/thruk/cgi-bin/showlog.cgi');


add_section('name' => 'System');
  add_link('name' => 'Comments',          'href' => '/thruk/cgi-bin/extinfo.cgi?type=3');
  add_link('name' => 'Downtimes',         'href' => '/thruk/cgi-bin/extinfo.cgi?type=6');
    add_sub_link('name' => 'Recurring Downtimes', 'href' => '/thruk/cgi-bin/extinfo.cgi?type=6&amp;recurring');
  add_link('name' => 'Process Info',      'href' => '/thruk/cgi-bin/extinfo.cgi?type=0');
  add_link('name' => 'Performance Info',  'href' => '/thruk/cgi-bin/extinfo.cgi?type=4');
  add_link('name' => 'Scheduling Queue',  'href' => '/thruk/cgi-bin/extinfo.cgi?type=7');
  add_link('name' => 'Configuration',     'href' => '/thruk/cgi-bin/config.cgi');
