summaryrefslogtreecommitdiffstats
path: root/run.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:16:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:16:36 +0000
commitd61b7618d9c04ff90fdf8d3b584ad5976faedad9 (patch)
tree6de6eaca7793f0f1f756c9a5a0fa9e07957c8569 /run.php
parentInitial commit. (diff)
downloadicingaweb2-module-cube-d61b7618d9c04ff90fdf8d3b584ad5976faedad9.tar.xz
icingaweb2-module-cube-d61b7618d9c04ff90fdf8d3b584ad5976faedad9.zip
Adding upstream version 1.3.2.upstream/1.3.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--run.php48
1 files changed, 48 insertions, 0 deletions
diff --git a/run.php b/run.php
new file mode 100644
index 0000000..454db18
--- /dev/null
+++ b/run.php
@@ -0,0 +1,48 @@
+<?php
+
+// Icinga Web 2 Cube Module | (c) 2016 Icinga GmbH | GPLv2
+
+use Icinga\Module\Cube\Cube;
+
+$this->provideHook('cube/Actions', 'Cube/MonitoringActions');
+$this->provideHook('cube/IcingaDbActions', 'Cube/IcingaDbActions');
+
+$this->provideHook('icingadb/icingadbSupport');
+
+if (! Cube::isUsingIcingaDb()) {
+ $this->addRoute('cube/hosts', new Zend_Controller_Router_Route_Static(
+ 'cube/hosts',
+ [
+ 'controller' => 'ido-hosts',
+ 'action' => 'index',
+ 'module' => 'cube'
+ ]
+ ));
+
+ $this->addRoute('cube/hosts/details', new Zend_Controller_Router_Route_Static(
+ 'cube/hosts/details',
+ [
+ 'controller' => 'ido-hosts',
+ 'action' => 'details',
+ 'module' => 'cube'
+ ]
+ ));
+
+ $this->addRoute('cube/services', new Zend_Controller_Router_Route_Static(
+ 'cube/services',
+ [
+ 'controller' => 'ido-services',
+ 'action' => 'index',
+ 'module' => 'cube'
+ ]
+ ));
+
+ $this->addRoute('cube/services/details', new Zend_Controller_Router_Route_Static(
+ 'cube/services/details',
+ [
+ 'controller' => 'ido-services',
+ 'action' => 'details',
+ 'module' => 'cube'
+ ]
+ ));
+}