-
Notifications
You must be signed in to change notification settings - Fork 34
/
configuration.php
53 lines (50 loc) · 1.62 KB
/
configuration.php
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
<?php
/** @var \Icinga\Application\Modules\Module $this */
$this->providePermission(
'vspheredb/admin',
$this->translate('Allow to configure vCenter connections')
);
$this->provideRestriction(
'vspheredb/vcenters',
$this->translate(
'Restrict Access to specific vCenters only. Please specify a'
. ' comma-separated list of case-sensitive vCenter names.'
. ' Wildcard-matching (with *) is allowed'
)
);
$section = $this->menuSection(N_('Virtualization (VMware)'))
->setIcon('cloud')
->setUrl('vspheredb/vcenters')
->setPriority(70);
$section->add(N_('Virtual Machines'))
->setUrl('vspheredb/vms')
->setPriority(20);
$section->add(N_('Hosts'))
->setUrl('vspheredb/hosts')
->setPriority(30);
$section->add(N_('Datastores'))
->setUrl('vspheredb/datastores')
->setPriority(40);
// $section->add(N_('Anomalies'))
// ->setUrl('vspheredb/anomalies')
// ->setPriority(45);
$section->add(N_('Monitoring Rules'))
->setUrl('vspheredb/monitoring')
->setPriority(45);
$section->add(N_('History'))
->setUrl('vspheredb/events/heatmap')
->setPermission('vspheredb/admin')
->setPriority(49);
$section->add(N_('Configuration'))
->setUrl('vspheredb/configuration/servers')
->setPermission('vspheredb/admin')
->setPriority(51);
// $section->add(N_('Performance Counter'))
// ->setUrl('vspheredb/configuration/counters')
// ->setPriority(60);
// $section->add(N_('Top VMs'))
// ->setUrl('vspheredb/top/vms')
// ->setPriority(70);
// $section->add(N_('Configuration'))
// ->setUrl('vspheredb/configuration')
// ->setPriority(87);