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:
Thomas Gelf 2015-01-21 09:22:25 +01:00
parent 852faac5d8
commit 27318fc7e8

View file

@ -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();