Moogsoft Docs

Install Moogsoft AIOps on a Single Host with RPM

This topic guides you through the installation process for Moogsoft AIOPs using RPM via Yum.

Before You Begin

Before you install Moogsoft AIOps, ensure you have met the following requirements:

Install Moogsoft AIOps

To install Moogsoft AIOps on a single host machine:

  1. Download the RPMs and install them:

    yum -y install moogsoft-db-7.1.0 \ 
    			moogsoft-common-7.1.0 \
                moogsoft-integrations-7.1.0 \
                moogsoft-integrations-ui-7.1.0 \
                moogsoft-mooms-7.1.0 \
                moogsoft-search-7.1.0 \
                moogsoft-server-7.1.0 \
                moogsoft-ui-7.1.0 \
  2. Set the environment variables required for Moogsoft AIOps.

    If you are using the default Bash shell, you can set the variables in the bashrc file:

    vi ~/.bashrc 

    Add the following by copying and pasting each line one at a time:

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

    When entering the environment variable in the bashrc file, ensure each export command is on separate single line and that it does not wrap.

  3. Start a new Bash shell, or source the bashrc file as follows:

    source ~/.bashrc
  4. If you have not already downloaded the MySQL connector as part of Pre-Install Moogsoft AIOps - Offline RPMs , download the mysql-connector-5.1.45 jar file :

    curl -L -O
  5. Extract, rename and move the file to $MOOGSOFT_HOME/lib/cots/nonDist as follows:

    tar --strip-components 1 -xvf mysql-connector-java-5.1.45.tar.gz -C $MOOGSOFT_HOME/lib/cots/nonDist/ mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar --transform 's/-bin//'
  6. Initialize the installation:

    $MOOGSOFT_HOME/bin/utils/ -I MY_ZONE -u root
    • The default password for MySQL is empty, so press Enter when prompted for the MySQL 'root' password. If you created a separate user in the database for Moogsoft AIOps, use the credentials for the user you created.

    • Follow the instructions and confirm prompts about the hostname.

  7. Start Moogfarmd:

    service moogfarmd start

    Verify your installation following the steps in Post Install Validation .
    Follow the Troubleshooting guide to resolve any issues.