From 23be945fd2810ee82e3a23cbcd2352c9bda43d4f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:44:18 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- configuration.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 configuration.php (limited to 'configuration.php') diff --git a/configuration.php b/configuration.php new file mode 100644 index 0000000..1ac05b3 --- /dev/null +++ b/configuration.php @@ -0,0 +1,31 @@ +menuSection(N_('Graphite'), ['icon' => 'chart-area']); + +if ($this::exists('icingadb') && IcingadbSupport::useIcingaDbAsBackend()) { + $section->add(N_('Hosts'), ['url' => 'graphite/hosts']); + $section->add(N_('Services'), ['url' => 'graphite/services']); +} else { + $section->add(N_('Hosts'), ['url' => 'graphite/list/hosts']); + $section->add(N_('Services'), ['url' => 'graphite/list/services']); +} + +$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')); -- cgit v1.2.3