From eed00cf27a36991227285c1bd22e6d466db8fa13 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:01:07 +0200 Subject: [PATCH] WIP --- .../clicommands/ToicingadbCommand.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/migrate/application/clicommands/ToicingadbCommand.php b/modules/migrate/application/clicommands/ToicingadbCommand.php index b92c6c93be..6c4a0479de 100644 --- a/modules/migrate/application/clicommands/ToicingadbCommand.php +++ b/modules/migrate/application/clicommands/ToicingadbCommand.php @@ -161,6 +161,27 @@ public function navigationAction() Logger::info('Successfully migrated all local user monitoring navigation items'); } + + /** + * Migrate monitoring restrictions in a role to Icinga DB Web restrictions + * + * USAGE + * + * icingacli migrate toicingadb restriction [options] + * + * OPTIONS: + * + * --user= Migrate monitoring navigation items only for + * the given user. (Default *) + * + * --group= Migrate monitoring navigation items only for + * the given user. (Default *) + * + * --role= Migrate monitoring navigation items only for + * the given user. (Default *) + * + * --override Override the existing Icinga DB navigation items + */ public function restrictionsAction() { $override = $this->params->get('override');