summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--config/systemd/icinga-reporting.service10
-rw-r--r--configuration.php52
2 files changed, 62 insertions, 0 deletions
diff --git a/config/systemd/icinga-reporting.service b/config/systemd/icinga-reporting.service
new file mode 100644
index 0000000..51cc155
--- /dev/null
+++ b/config/systemd/icinga-reporting.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Icinga Reporting Scheduler
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/icingacli reporting schedule run
+Restart=on-success
+
+[Install]
+WantedBy=multi-user.target
diff --git a/configuration.php b/configuration.php
new file mode 100644
index 0000000..bb5b2e6
--- /dev/null
+++ b/configuration.php
@@ -0,0 +1,52 @@
+<?php
+// Icinga Reporting | (c) 2018 Icinga GmbH | GPLv2
+
+namespace Icinga\Module\Reporting {
+
+ use Icinga\Application\Version;
+
+ /** @var \Icinga\Application\Modules\Module $this */
+
+ $this->provideCssFile('system-report.css');
+
+ if (version_compare(Version::VERSION, '2.9.0', '<')) {
+ $this->provideJsFile('vendor/flatpickr.min.js');
+ $this->provideCssFile('vendor/flatpickr.min.css');
+ }
+
+ $this->menuSection(N_('Reporting'))->add(N_('Reports'), array(
+ 'url' => 'reporting/reports',
+ ));
+
+ $this->provideConfigTab('backend', array(
+ 'title' => $this->translate('Configure the database backend'),
+ 'label' => $this->translate('Backend'),
+ 'url' => 'config/backend'
+ ));
+
+ $this->provideConfigTab('mail', array(
+ 'title' => $this->translate('Configure mail'),
+ 'label' => $this->translate('Mail'),
+ 'url' => 'config/mail'
+ ));
+
+ $this->providePermission(
+ 'reporting/reports',
+ $this->translate('Allow managing reports')
+ );
+
+ $this->providePermission(
+ 'reporting/schedules',
+ $this->translate('Allow managing schedules')
+ );
+
+ $this->providePermission(
+ 'reporting/templates',
+ $this->translate('Allow managing templates')
+ );
+
+ $this->providePermission(
+ 'reporting/timeframes',
+ $this->translate('Allow managing timeframes')
+ );
+}