mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
Controller: allow to run with disabled monitoring
...module. Can be useful for dashboard-like installations that want to hide farther details.
This commit is contained in:
parent
852faac5d8
commit
27318fc7e8
1 changed files with 6 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Icinga\Module\Businessprocess;
|
||||
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\Web\Controller\ModuleActionController;
|
||||
use Icinga\Module\Monitoring\Backend;
|
||||
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
||||
|
|
@ -24,6 +25,11 @@ class Controller extends ModuleActionController
|
|||
|
||||
public function init()
|
||||
{
|
||||
$m = Icinga::app()->getModuleManager();
|
||||
if (! $m->hasLoaded('monitoring') && $m->hasInstalled('monitoring')) {
|
||||
$m->loadModule('monitoring');
|
||||
}
|
||||
|
||||
$this->config = $this->Config();
|
||||
// $this->readConfig();
|
||||
$this->prepareBackend();
|
||||
|
|
|
|||
Loading…
Reference in a new issue