Monitoring: Add icons and descriptions for second level menu items

This commit is contained in:
Eric Lippmann 2017-11-20 19:13:53 +01:00
parent 8ffa110901
commit fd0fe9a403

View File

@ -130,7 +130,9 @@ $section = $this->menuSection(N_('Problems'), array(
'priority' => 20 'priority' => 20
)); ));
$section->add(N_('Host Problems'), array( $section->add(N_('Host Problems'), array(
'renderer' => array( 'icon' => 'host',
'description' => $this->translate('List current host problems'),
'renderer' => array(
'MonitoringBadgeNavigationItemRenderer', 'MonitoringBadgeNavigationItemRenderer',
'columns' => array( 'columns' => array(
'hosts_down_unhandled' => $this->translate('%d unhandled hosts down') 'hosts_down_unhandled' => $this->translate('%d unhandled hosts down')
@ -142,7 +144,9 @@ $section->add(N_('Host Problems'), array(
'priority' => 50 'priority' => 50
)); ));
$section->add(N_('Service Problems'), array( $section->add(N_('Service Problems'), array(
'renderer' => array( 'icon' => 'service',
'description' => $this->translate('List current service problems'),
'renderer' => array(
'MonitoringBadgeNavigationItemRenderer', 'MonitoringBadgeNavigationItemRenderer',
'columns' => array( 'columns' => array(
'services_critical_unhandled' => $this->translate('%d unhandled services critical') 'services_critical_unhandled' => $this->translate('%d unhandled services critical')
@ -154,12 +158,16 @@ $section->add(N_('Service Problems'), array(
'priority' => 60 'priority' => 60
)); ));
$section->add(N_('Service Grid'), array( $section->add(N_('Service Grid'), array(
'url' => 'monitoring/list/servicegrid?problems', 'icon' => 'services',
'priority' => 70 'description' => $this->translate('Display service problems as grid'),
'url' => 'monitoring/list/servicegrid?problems',
'priority' => 70
)); ));
$section->add(N_('Current Downtimes'), array( $section->add(N_('Current Downtimes'), array(
'url' => 'monitoring/list/downtimes?downtime_is_in_effect=1', 'icon' => 'plug',
'priority' => 80 'description' => $this->translate('List current downtimes'),
'url' => 'monitoring/list/downtimes?downtime_is_in_effect=1',
'priority' => 80
)); ));
/* /*
@ -170,40 +178,58 @@ $section = $this->menuSection(N_('Overview'), array(
'priority' => 30 'priority' => 30
)); ));
$section->add(N_('Tactical Overview'), array( $section->add(N_('Tactical Overview'), array(
'url' => 'monitoring/tactical', 'icon' => 'chart-pie',
'priority' => 40 'description' => $this->translate('Open tactical overview'),
'url' => 'monitoring/tactical',
'priority' => 40
)); ));
$section->add(N_('Hosts'), array( $section->add(N_('Hosts'), array(
'url' => 'monitoring/list/hosts', 'icon' => 'host',
'priority' => 50 'description' => $this->translate('List hosts'),
'url' => 'monitoring/list/hosts',
'priority' => 50
)); ));
$section->add(N_('Services'), array( $section->add(N_('Services'), array(
'url' => 'monitoring/list/services', 'icon' => 'service',
'priority' => 50 'description' => $this->translate('List services'),
'url' => 'monitoring/list/services',
'priority' => 50
)); ));
$section->add(N_('Servicegroups'), array( $section->add(N_('Servicegroups'), array(
'url' => 'monitoring/list/servicegroups', 'icon' => 'services',
'priority' => 60 'description' => $this->translate('List service groups'),
'url' => 'monitoring/list/servicegroups',
'priority' => 60
)); ));
$section->add(N_('Hostgroups'), array( $section->add(N_('Hostgroups'), array(
'url' => 'monitoring/list/hostgroups', 'icon' => 'host',
'priority' => 60 'description' => $this->translate('List host groups'),
'url' => 'monitoring/list/hostgroups',
'priority' => 60
)); ));
$section->add(N_('Contacts'), array( $section->add(N_('Contacts'), array(
'url' => 'monitoring/list/contacts', 'icon' => 'user',
'priority' => 70 'description' => $this->translate('List contacts'),
'url' => 'monitoring/list/contacts',
'priority' => 70
)); ));
$section->add(N_('Contactgroups'), array( $section->add(N_('Contactgroups'), array(
'url' => 'monitoring/list/contactgroups', 'icon' => 'users',
'priority' => 70 'description' => $this->translate('List users'),
'url' => 'monitoring/list/contactgroups',
'priority' => 70
)); ));
$section->add(N_('Comments'), array( $section->add(N_('Comments'), array(
'url' => 'monitoring/list/comments?comment_type=comment|comment_type=ack', 'icon' => 'chat-empty',
'priority' => 80 'description' => $this->translate('List comments'),
'url' => 'monitoring/list/comments?comment_type=comment|comment_type=ack',
'priority' => 80
)); ));
$section->add(N_('Downtimes'), array( $section->add(N_('Downtimes'), array(
'url' => 'monitoring/list/downtimes', 'icon' => 'plug',
'priority' => 80 'description' => $this->translate('List downtimes'),
'url' => 'monitoring/list/downtimes',
'priority' => 80
)); ));
/* /*
@ -214,20 +240,28 @@ $section = $this->menuSection(N_('History'), array(
'priority' => 90 'priority' => 90
)); ));
$section->add(N_('Event Grid'), array( $section->add(N_('Event Grid'), array(
'priority' => 10, 'icon' => 'history',
'url' => 'monitoring/list/eventgrid' 'description' => $this->translate('Open event grid'),
'priority' => 10,
'url' => 'monitoring/list/eventgrid'
)); ));
$section->add(N_('Event Overview'), array( $section->add(N_('Event Overview'), array(
'priority' => 20, 'icon' => 'history',
'url' => 'monitoring/list/eventhistory?timestamp>=-7%20days' 'description' => $this->translate('Open event overview'),
'priority' => 20,
'url' => 'monitoring/list/eventhistory?timestamp>=-7%20days'
)); ));
$section->add(N_('Notifications'), array( $section->add(N_('Notifications'), array(
'priority' => 30, 'icon' => 'bell',
'url' => 'monitoring/list/notifications?notification_timestamp>=-7%20days', 'description' => $this->translate('List notifications'),
'priority' => 30,
'url' => 'monitoring/list/notifications?notification_timestamp>=-7%20days',
)); ));
$section->add(N_('Timeline'), array( $section->add(N_('Timeline'), array(
'priority' => 40, 'icon' => 'clock',
'url' => 'monitoring/timeline' 'description' => $this->translate('Open timeline'),
'priority' => 40,
'url' => 'monitoring/timeline'
)); ));
/* /*
@ -243,9 +277,11 @@ $section = $this->menuSection(N_('Reporting'), array(
*/ */
$section = $this->menuSection(N_('System')); $section = $this->menuSection(N_('System'));
$section->add(N_('Monitoring Health'), array( $section->add(N_('Monitoring Health'), array(
'url' => 'monitoring/health/info', 'icon' => 'check',
'priority' => 720, 'description' => $this->translate('Open monitoring health'),
'renderer' => 'BackendAvailabilityNavigationItemRenderer' 'url' => 'monitoring/health/info',
'priority' => 720,
'renderer' => 'BackendAvailabilityNavigationItemRenderer'
)); ));
/* /*