summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 12:43:29 +0000
commita9b77c01caef9ae7a2c84e2333d28ceb028cf4d3 (patch)
tree4a77cd3e323c37b0e5b3d7578b9718cdf1a89262 /configuration.php
parentInitial commit. (diff)
downloadicingaweb2-module-eventdb-a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3.tar.xz
icingaweb2-module-eventdb-a9b77c01caef9ae7a2c84e2333d28ceb028cf4d3.zip
Adding upstream version 1.3.0.upstream/1.3.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--configuration.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/configuration.php b/configuration.php
new file mode 100644
index 0000000..0147b89
--- /dev/null
+++ b/configuration.php
@@ -0,0 +1,46 @@
+<?php
+/** @var Icinga\Application\Modules\Module $this */
+
+$config = $this->getConfig();
+
+$url = 'eventdb/events';
+if (($default_filter = $config->get('global', 'default_filter')) !== null) {
+ $url .= '?' . $default_filter;
+}
+
+$section = $this->menuSection('EventDB', array(
+ 'icon' => 'tasks',
+ 'priority' => 200,
+ 'url' => $url,
+));
+
+$this->provideConfigTab('config', array(
+ 'title' => $this->translate('Configure EventDB'),
+ 'label' => $this->translate('Config'),
+ 'url' => 'config'
+));
+$this->provideConfigTab('monitoring', array(
+ 'title' => $this->translate('Configure integration into the monitoring module'),
+ 'label' => $this->translate('Monitoring'),
+ 'url' => 'config/monitoring'
+));
+
+$this->providePermission(
+ 'eventdb/events',
+ $this->translate('Allow to view events')
+);
+
+$this->providePermission(
+ 'eventdb/comments',
+ $this->translate('Allow to view comments')
+);
+
+$this->providePermission(
+ 'eventdb/interact',
+ $this->translate('Allow to acknowledge and comment events')
+);
+
+$this->provideRestriction(
+ 'eventdb/events/filter',
+ $this->translate('Restrict views to the events that match the filter')
+);