-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfiguration.php
More file actions
67 lines (61 loc) · 2.26 KB
/
configuration.php
File metadata and controls
67 lines (61 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/** @var \Icinga\Application\Modules\Module $this */
use Icinga\Application\Config;
if ($this->getConfig()->get('ui', 'disabled', 'no') === 'yes') {
return;
}
$section = $this->menuSection(N_('Event Tracker'))
->setIcon('warning-empty')
->setUrl('eventtracker/dashboard')
->setPriority(17);
$section->add(N_('Issues'))->setUrl('eventtracker/issues')->setPriority(10);
$section->add(N_('Handled Issues'))
->setUrl(
'eventtracker/issues?status=acknowledged,in_downtime'
. '&columns=severity,host_name,message,owner,ticket_ref'
)
->setPriority(20);
$section->add(N_('Summaries'))->setUrl('eventtracker/summary/top10')->setPriority(30);
$section->add(N_('History'))->setUrl('eventtracker/history/issues')->setPriority(30);
// $section->add(N_('Downtimes'))->setUrl('eventtracker/downtimes')->setPriority(40);
$section->add(N_('Reporting'))->setUrl('eventtracker/reporting/history-summary')->setPriority(60);
$section->add(N_('Configuration'))
->setUrl('eventtracker/configuration')
->setPriority(70)
->setPermission('eventtracker/admin');
if (Config::module('eventtracker')->get('ui', 'allows_cleanup') === 'true') {
$section->add(N_('DB-Cleanup'))
->setUrl('eventtracker/cleanup')
->setPriority(80)
->setPermission('eventtracker/admin');
}
$this->provideSearchUrl('EventTracker', 'eventtracker/issues', 110);
$this->providePermission(
'eventtracker/admin',
$this->translate('Eventtracker admin')
);
$this->providePermission(
'eventtracker/showsql',
$this->translate('Allow to show SQL queries')
);
$this->providePermission(
'eventtracker/operator',
$this->translate('Operators are allowed to modify issues (Priority, Owner...)')
);
$this->providePermission(
'eventtracker/reporting',
$this->translate('Allow to access Reports')
);
$this->provideRestriction(
'eventtracker/ignoreInputs',
$this->translate('Comma-separated list of Input UUIDs to ignore')
);
$this->provideRestriction(
'eventtracker/filterInputs',
$this->translate('Comma-separated list of Input UUIDs to show')
);
if ($this->getConfig()->get('scom', 'db_resource')) {
// $section->add(N_('SCOM Alerts'))
// ->setUrl('eventtracker/scom/alerts')
// ->setPermission('eventtracker/admin');
}