Skip to end of metadata
Go to start of metadata

This topic describes the commands for starting, stopping or restarting individual Moogsoft AIOps processes.

To configure process startup when Moogsoft AIOps fails or restarts see Configure Services to Restart

Dependencies

Integrations (LAMs), Moogfarmd, and Tomcat depend on the system processes: MySQL RabbitMQ, Nginx, and Elasticsearch. So when starting Moogsoft AIOps processes:

  1. Start or verify the following are started:
    • MySQL
    • RabbbitMQ
    • Nginx
    • Elasticsearch
  2. Start or restart integrations (LAMs), Moogfarmd, or Tomcat.

Similarly, if you plan to stop any one of MySQL, RabbitMQ, Nginx, or Elasticsearch, stop integrations (LAMs), Moogfarmd, and Tomcat first.

Init Scripts for RPM Installs

If you performed an RPM installation as root, use the service init script to start and stop Moogsoft AIOps processes:

service <service-name> start|stop|restart

The service names are as follows:

  • MySQL: mysqld
  • RabbitMQ:  rabbitmq-server
  • Nginx: nginx
  • Elasticsearch: elasticsearch
  • Tomcat: apache-tomcat
  • moogfarmd
  • For LAMs , refer to the individual LAM references for the service names.

For more information, see the documentation on managing system services for your operating system.

Process Control for Non-root Installations

For customers who follow the Single Host Installation for Non-root Users procedure, Moogsoft AIOps includes a process control utility to let you:

  • Start a process
  • Stop a process
  • Restart a process
  • Check the status, running or stopped, of a process.

The process control utility resides at $MOOGSOFT_HOME/bin/utils/process_cntl .

When you install Moogsoft AIOps as a user other than root, you choose a user to run the installation and initialize the system. Use the same user credentials when controlling Moogsoft AIOps components to ensure that you have the proper permissions and access .

Process Control Utility Reference

The Process Control utility uses the following syntax:

process_cntl [ [--process_name] <name>] [--loglevel] <loglevel>] [--service_instance <instance>] {start|stop|status|restart|help} ]

The arguments for the utility are as follows:

ArgumentInputDescription
-h,--help
-Display the process_cntl syntax and option descriptions.
--loglevelDEBUG | INFO | WARNLog level controlling the amount of information that process control logs. Defaults to WARN. This flag only works for Moogsoft AIOps processes.
--process_name
process name

The name of the process to control. You can specify one of the core processes:

  • rabbitmq - RabbitMQ message broker
  • mysql - MySQL database
  • nginx - Nginx web server.
  • elasticsearch - Elasticsearch search engine.
  • apache-tomcat - Apache Tomcat servlet container.
  • moog_farmd - Moogsoft event processing process.

Alternatively specify an integration (LAM). Run process_cntl -h for a full list of integrations and syntax.

See Implementer Guide for a brief description of the packages.

--service_instance

instance nameThe name of the process instance if there is more than one running on the system.
start-Start a stopped process.
stop-Stop a running process.
status-Display the status of the process: running or stopped.
restart-Restart a running process.
  • No labels