mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-04-10 19:49:59 -04:00
Add SPDX license headers and mark source files as GPL-3.0-or-later to preserve the option to relicense under later GPL versions.
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
use Icinga\Module\Businessprocess\ProvidedHook\Icingadb\IcingadbSupport;
|
|
|
|
$this->provideHook('monitoring/HostActions');
|
|
$this->provideHook('monitoring/ServiceActions');
|
|
$this->provideHook('monitoring/DetailviewExtension');
|
|
$this->provideHook('icingadb/HostActions');
|
|
$this->provideHook('icingadb/ServiceActions');
|
|
$this->provideHook('icingadb/icingadbSupport');
|
|
$this->provideHook('icingadb/ServiceDetailExtension');
|
|
//$this->provideHook('director/shipConfigFiles');
|
|
|
|
if (! static::exists('icingadb') || ! IcingadbSupport::useIcingaDbAsBackend()) {
|
|
$this->addRoute('businessprocess/host/show', new Zend_Controller_Router_Route_Static(
|
|
'businessprocess/host/show',
|
|
[
|
|
'controller' => 'ido-host',
|
|
'action' => 'show',
|
|
'module' => 'businessprocess'
|
|
]
|
|
));
|
|
|
|
$this->addRoute('businessprocess/service/show', new Zend_Controller_Router_Route_Static(
|
|
'businessprocess/service/show',
|
|
[
|
|
'controller' => 'ido-service',
|
|
'action' => 'show',
|
|
'module' => 'businessprocess'
|
|
]
|
|
));
|
|
}
|