summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-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), '/');
+ }
+
+