diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:16:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:16:36 +0000 |
commit | d61b7618d9c04ff90fdf8d3b584ad5976faedad9 (patch) | |
tree | 6de6eaca7793f0f1f756c9a5a0fa9e07957c8569 /run.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-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.php | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -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' + ] + )); +} |