summaryrefslogtreecommitdiffstats
path: root/library/BoxyDash/Grid.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:14:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:14:28 +0000
commitda18060bb217647c09ad22013f620f474fb867d0 (patch)
tree96906f4dd33b7b5660460372269b180af564d982 /library/BoxyDash/Grid.php
parentInitial commit. (diff)
downloadicingaweb2-module-boxydash-da18060bb217647c09ad22013f620f474fb867d0.tar.xz
icingaweb2-module-boxydash-da18060bb217647c09ad22013f620f474fb867d0.zip
Adding upstream version 0.0.1+20160321.upstream/0.0.1+20160321upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/BoxyDash/Grid.php')
-rw-r--r--library/BoxyDash/Grid.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/library/BoxyDash/Grid.php b/library/BoxyDash/Grid.php
new file mode 100644
index 0000000..cec3940
--- /dev/null
+++ b/library/BoxyDash/Grid.php
@@ -0,0 +1,27 @@
+<?php
+
+namespace Icinga\Module\BoxyDash;
+
+use Icinga\Application\Config;
+use Icinga\Exception\ConfigurationError;
+use Icinga\Module\Monitoring\Object\MonitoredObject;
+use Icinga\Module\Monitoring\Object\Host;
+use Icinga\Module\Monitoring\Object\Service;
+use Icinga\Web\Hook\GrapherHook;
+use Icinga\Web\Url;
+
+class Grid extends WebBaseHook
+{
+ protected $hasPreviews = true;
+
+
+
+ protected $baseUrl = '/boxydash';
+
+ protected function init()
+ {
+ $cfg = Config::module('boxydash')->getSection('boxydash');
+ $this->baseUrl = rtrim($cfg->get('base_url', $this->baseUrl), '/');
+ }
+
+