diff --git a/configuration.php b/configuration.php index c2742ac5..d49145e3 100644 --- a/configuration.php +++ b/configuration.php @@ -132,6 +132,12 @@ namespace Icinga\Module\Icingadb ); if (! $this::exists('monitoring')) { + /* + * Available navigation items + */ + $this->provideNavigationItem('icingadb-host-action', $this->translate('Host Action')); + $this->provideNavigationItem('icingadb-service-action', $this->translate('Service Action')); + /** * Search urls */ @@ -253,6 +259,18 @@ namespace Icinga\Module\Icingadb . '&view=minimal&limit=15&sort=host.state.severity desc', 150 ); + } else { + /* + * Available navigation items + */ + $this->provideNavigationItem( + 'icingadb-host-action', + $this->translate('Host Action') . ' (Icinga DB)' + ); + $this->provideNavigationItem( + 'icingadb-service-action', + $this->translate('Service Action') . ' (Icinga DB)' + ); } /** @var \Icinga\Application\Modules\Module $this */