Example #1
0
    def service_check(self, env):
        from params import params

        # check the parsers
        Logger.info("Performing Parser service check")
        parser_cmds = ParserCommands(params)
        parser_cmds.service_check(env)

        # check enrichment
        Logger.info("Performing Enrichment service check")
        enrichment_cmds = EnrichmentCommands(params)
        enrichment_cmds.service_check(env)

        # check indexing
        Logger.info("Performing Indexing service check")
        indexing_cmds = IndexingCommands(params)
        indexing_cmds.service_check(env)

        # check the profiler
        Logger.info("Performing Profiler service check")
        profiler_cmds = ProfilerCommands(params)
        profiler_cmds.service_check(env)

        # check the rest api
        Logger.info("Performing REST application service check")
        rest_cmds = RestCommands(params)
        rest_cmds.service_check(env)

        # check the management UI
        Logger.info("Performing Management UI service check")
        mgmt_cmds = ManagementUICommands(params)
        mgmt_cmds.service_check(env)

        # check the alerts UI
        Logger.info("Performing Alerts UI service check")
        alerts_cmds = AlertsUICommands(params)
        alerts_cmds.service_check(env)

        Logger.info("Metron service check completed successfully")
        exit(0)
    def service_check(self, env):
        from params import params

        # check the parsers
        Logger.info("Performing Parser service check")
        parser_cmds = ParserCommands(params)
        parser_cmds.service_check(env)

        # check enrichment
        Logger.info("Performing Enrichment service check")
        enrichment_cmds = EnrichmentCommands(params)
        enrichment_cmds.service_check(env)

        # check indexing
        Logger.info("Performing Indexing service check")
        indexing_cmds = IndexingCommands(params)
        indexing_cmds.service_check(env)

        # check the profiler
        Logger.info("Performing Profiler service check")
        profiler_cmds = ProfilerCommands(params)
        profiler_cmds.service_check(env)

        # check the rest api
        Logger.info("Performing REST application service check")
        rest_cmds = RestCommands(params)
        rest_cmds.service_check(env)

        # check the management UI
        Logger.info("Performing Management UI service check")
        mgmt_cmds = ManagementUICommands(params)
        mgmt_cmds.service_check(env)

        # check the alerts UI
        Logger.info("Performing Alerts UI service check")
        alerts_cmds = AlertsUICommands(params)
        alerts_cmds.service_check(env)

        Logger.info("Metron service check completed successfully")
        exit(0)
Example #3
0
 def restart(self, env):
     from params import params
     env.set_params(params)
     self.configure(env)
     commands = ManagementUICommands(params)
     commands.restart_management_ui(env)
Example #4
0
 def status(self, env):
     from params import status_params
     env.set_params(status_params)
     commands = ManagementUICommands(status_params)
     commands.status_management_ui(env)
Example #5
0
 def stop(self, env, upgrade_type=None):
     from params import params
     env.set_params(params)
     commands = ManagementUICommands(params)
     commands.stop_management_ui()
Example #6
0
 def start(self, env, upgrade_type=None):
     from params import params
     env.set_params(params)
     self.configure(env)
     commands = ManagementUICommands(params)
     commands.start_management_ui()
 def restart(self, env):
     from params import params
     env.set_params(params)
     self.configure(env)
     commands = ManagementUICommands(params)
     commands.restart_management_ui(env)
 def status(self, env):
     from params import status_params
     env.set_params(status_params)
     commands = ManagementUICommands(status_params)
     commands.status_management_ui(env)
 def stop(self, env, upgrade_type=None):
     from params import params
     env.set_params(params)
     commands = ManagementUICommands(params)
     commands.stop_management_ui()
 def start(self, env, upgrade_type=None):
     from params import params
     env.set_params(params)
     self.configure(env)
     commands = ManagementUICommands(params)
     commands.start_management_ui()