Moogsoft Docs

RPM installation

This topic describes how to install Moogsoft AIOps v7.3.x on a single host.

Follow these steps if you have root access to the machine or machines on which you will install Moogsoft AIOps, and you can connect to Yum repositories outside your network from those machines.

To install Moogsoft AIOps in a highly available distributed environment, see Distributed HA Installation.

For Tarball installation steps, see v7.3.x - Tarball installation.

Before you begin

Before you start to install Moogsoft AIOps, complete all steps in one of the following documents:

  • v7.3.x - RPM pre-installation steps: If you have root access to the machine or machines on which you will install Moogsoft AIOps, and you can connect to Yum repositories outside your network from those machines.

  • v7.3.x - Offline RPM pre-installation steps: If you have root access to the machine or machines on which you will install or upgrade Moogsoft AIOps, but you cannot connect to Yum repositories outside your network from those machines.

Install Moogsoft AIOps

To complete an RPM installation of Moogsoft AIOps v7.3.x, perform the following steps:

  1. Download and install the Moogsoft AIOps RPM packages, using one of the following methods according to your deployment type:

    • If you are performing an RPM installation:

      yum -y install moogsoft-server-7.3.0 \
      moogsoft-db-7.3.0 \
      moogsoft-utils-7.3.0 \
      moogsoft-search-7.3.0 \
      moogsoft-ui-7.3.0 \
      moogsoft-common-7.3.0 \
      moogsoft-mooms-7.3.0 \
      moogsoft-integrations-7.3.0 \
      moogsoft-integrations-ui-7.3.0
    • If you are performing an offline RPM installation, navigate to the location where you copied the RPM files and install them:

      yum install *.rpm
  2. Edit your ~/.bashrc file to contain the following lines:

    export MOOGSOFT_HOME=/usr/share/moogsoft
    export APPSERVER_HOME=/usr/share/apache-tomcat
    export JAVA_HOME=/usr/java/latest
    export PATH=$PATH:$MOOGSOFT_HOME/bin:$MOOGSOFT_HOME/bin/utils 
Initialize Moogsoft AIOps

When the installation process is complete, initialize Moogsoft AIOps as follows:

  1. Run the initialization script moog_init (replace <zone name> with your desired RabbitMQ VHOST):

    $MOOGSOFT_HOME/bin/utils/moog_init.sh -qI <zone_name> -u root

    The script prompts you to accept the End User License Agreement (EULA) and guides you through the initialization process.

    The zone_name sets up a virtual host for the Message Bus. If you have multiple systems sharing the same bus, set a different zone name for each.

  2. If you are deploying more than one database, configure HA Proxy to load-balance the database nodes. The following script requires root privileges. Run this script on any host running any Moogsoft AIOps components. Provide your "speedy" Yum repo user credentials when prompted:

    cat > aiops_repo.sh << _EOF_
    #!/bin/bash
    clear
    echo "Please provide access credentials for the 'speedy' yum repository in order to run the haproxy setup script"
    echo
    read -p "AIOps Repository Username: " AIOPS_USER
    export AIOPS_USER
    read -p "AIOps Repository Password: " -s AIOPS_PASS
    export AIOPS_PASS
    echo
    bash <(curl -s -k https://\$AIOPS_USER:\$AIOPS_PASS@speedy.moogsoft.com/repo/aiops/haproxy_installer.sh)
    _EOF_
    bash aiops_repo.sh
  3. Restart Moogfarmd and Apache Tomcat:

    service moogfarmd restart
    
Run an unattended installation
Verify the installation
Change passwords for default users