mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-20 19:22:54 -05:00
parent
d88522eb85
commit
369c52dfd4
1 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ namespace Icinga\Module\Businessprocess;
|
|||
|
||||
use Icinga\Application\Config;
|
||||
use Icinga\Module\Businessprocess\Html\Link;
|
||||
use Icinga\Module\Businessprocess\State\MonitoringState;
|
||||
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
||||
use Icinga\Module\Businessprocess\Web\Url;
|
||||
use Exception;
|
||||
|
|
@ -66,12 +67,14 @@ class ImportedNode extends Node
|
|||
{
|
||||
if ($this->state === null) {
|
||||
try {
|
||||
$this->importedConfig()->retrieveStatesFromBackend();
|
||||
MonitoringState::apply($this->importedConfig());
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
|
||||
$this->state = $this->importedNode()->getState();
|
||||
$this->setMissing(false);
|
||||
}
|
||||
|
||||
return $this->state;
|
||||
}
|
||||
|
||||
|
|
@ -168,6 +171,9 @@ class ImportedNode extends Node
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BpConfig
|
||||
*/
|
||||
protected function importedConfig()
|
||||
{
|
||||
if ($this->config === null) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue