Skip to content

Commit

Permalink
register-hooks: no monitoring hook w/o Director UI
Browse files Browse the repository at this point in the history
fixes #2597
  • Loading branch information
Thomas-Gelf committed Aug 31, 2022
1 parent 53e45da commit 1682175
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions register-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,12 @@
use Icinga\Module\Director\ProvidedHook\IcingaDbCubeLinks;

/** @var Module $this */
$this->provideHook('monitoring/HostActions');
$this->provideHook('monitoring/ServiceActions');
$this->provideHook('cube/Actions', CubeLinks::class);
$this->provideHook('cube/IcingaDbActions', IcingaDbCubeLinks::class);
if ($this->getConfig()->get('frontend', 'disabled', 'no') !== 'yes') {
$this->provideHook('monitoring/HostActions');
$this->provideHook('monitoring/ServiceActions');
$this->provideHook('cube/Actions', CubeLinks::class);
$this->provideHook('cube/IcingaDbActions', IcingaDbCubeLinks::class);
}

$directorHooks = [
'director/DataType' => [
Expand Down

0 comments on commit 1682175

Please sign in to comment.