diff options
Diffstat (limited to 'run.php')
-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' + ] + )); +} |