forked from Icinga/icingaweb2-module-graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.php
22 lines (17 loc) · 842 Bytes
/
configuration.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/** @var \Icinga\Application\Modules\Module $this */
/** @var \Icinga\Application\Modules\MenuItemContainer $section */
$section = $this->menuSection(N_('Graphite'), ['icon' => 'chart-area']);
$section->add(N_('Hosts'), ['url' => 'graphite/list/hosts?graphs_limit=2']);
$section->add(N_('Services'), ['url' => 'graphite/list/services?graphs_limit=2']);
$this->provideConfigTab('backend', array(
'title' => $this->translate('Configure the Graphite Web backend'),
'label' => $this->translate('Backend'),
'url' => 'config/backend'
));
$this->provideConfigTab('advanced', array(
'title' => $this->translate('Advanced configuration'),
'label' => $this->translate('Advanced'),
'url' => 'config/advanced'
));
$this->providePermission('graphite/debug', $this->translate('Allow debugging directly via the web UI'));