Moogsoft Enterprise - Online RPM pre-installation

You must perform certain preparatory tasks before you install Moogsoft Enterprise.

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

Before you begin

Before you begin to prepare for the installation, verify the following:

  • You have root access to the system where you plan to install Moogsoft Enterprise.

  • You have credentials to connect to the Moogsoft "speedy" Yum repository.

  • You are familiar with the supported versions of third party software, as outlined in Moogsoft Enterprise 8.0 Supported Environments.

Pre-installation steps

Complete the following steps before you perform a RPM installation of Moogsoft Enterprise:

  1. Run the following command to create the Moogsoft Enterprise Yum repository file /etc/yum.repos.d/aiops.repo with the following contents. Replace the username and password in the baseurl property with your Moogsoft "speedy" Yum repository credentials.

    cat > /etc/yum.repos.d/aiops.repo <<EOL
  2. Optional: GPG key validation of the RPMs

    To validate the RPMs before installation:

    1. For servers without internet access (if server has internet access go to the next step):

      1. Download the key from this site:
      2. Copy the key to the server onto which the RPMs or tarball will be installed (it will be an .asc file)

      3. Import the key:

        gpg --import 2529C94A49E42429EDAAADAEC7A2253BFC50512A.asc
    2. For servers with internet access, run the following command:

      curl | gpg —import
    3. Download all the '8.0' RPMs and .sig files from the speedy yum repository using a browser, providing speedy credentials when asked by the browser:

    4. Move the RPMs and .sig files into the same folder. For example, /tmp, as used in the example below.

    5. Copy the following code into a bash terminal and run it to perform the validation:

      while read RPM
          echo "Current RPM: $RPM"
          gpg --verify ${RPM}.sig ${RPM} 2>&1
      done < <(find /tmp -name '*.rpm');
    6. Confirm that all the commands for each RPM report:

      Good signature from "Moogsoft Information Security Team "<>"
    7. You can now remove the RPMs and .sig files. Yum will download the packages from the online repository for the actual installation.

  3. Run the following command to create an Elasticsearch Yum repository as a new file /etc/yum.repos.d/elasticsearch.repo with the following contents:

    cat > /etc/yum.repos.d/elasticsearch.repo <<EOL
    name=Elasticsearch repository for 6.x packages
  4. Install the RabbitMQ Erlang el7 package. For example:

    yum -y install

    Alternatively you can find the file at

  5. Install the RabbitMQ Yum repository. For example:

    curl -s | sudo bash

    Verify that the /etc/yum.repos.d/rabbitmq_rabbitmq-server.repo file has been created.

  6. Install the Elasticsearch public key. For example:

    rpm --import
  7. Run the following command to create an /etc/yum.repos.d/nginx.repo Nginx yum repo file:

    cat > /etc/yum.repos.d/nginx.repo <<EOL
    name=nginx repo
    OS_VERSION=$(cat /etc/system-release)
    case "$OS_VERSION" in        
        CentOS*release\ 7* )                        
            sed -i -e 's/OS/centos/' -e 's/OSRELEASE/7/' /etc/yum.repos.d/nginx.repo;;        
        Red\ Hat*release\ 7* )                        
            sed -i -e 's/OS/rhel/' -e 's/OSRELEASE/7/' /etc/yum.repos.d/nginx.repo;;
  8. Refresh the local Yum repo cache and verify that the NSS and OpenSSL packages are up to date on your system. For example:

    yum clean all
    yum -y update nss openssl
  9. Install Java 11:

    VERSION=; yum -y install java-11-openjdk-headless-${VERSION} java-11-openjdk-${VERSION} java-11-openjdk-devel-${VERSION}
  10. Install the Extra Packages for Enterprise Linux (EPEL) Yum repository and enable the optional packages:

    yum -y install

    Verify that the /etc/yum.repos.d/epel.repo file has been created.

  11. If the Operating System is RHEL, enable the 'extras' repos:

    subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
  12. The step after this one will result in the Percona RPMs being installed, however, it is possible that already installed packages can conflict with the Percona ones. Run the following command to identify if any already installed packages might conflict:

    rpm -q --whatprovides mysql-libs

    If this command returns any packages, remove them before continuing (yum remove <package_name>). Yum provides a warning if the removal of those packages will cause others which depend on them to be removed at the same time. If those packages cannot be removed, please contact Moogsoft Support - in this case a 'yum shell' script is needed to swap the dependencies 'in-place' without removing any other packages.

  13. Download the Percona database installer on all servers that will house a database node. The script configures multiple nodes to run as a cluster. A single node is also supported. Run this command on an internet-connected host. If this host does not have internet access, download the script on a different host before copying it to this host. Enter your "speedy" Yum repo user credentials when prompted:

    cat > << _EOF_
    echo "Please provide access credentials for the 'speedy' yum repository in order to download the Percona setup script"
    read -p "AIOps Repository Username: " AIOPS_USER
    export AIOPS_USER
    read -p "AIOps Repository Password: " -s AIOPS_PASS
    export AIOPS_PASS
    curl -L -O https://\$AIOPS_USER:\$ 2>/dev/null
  14. Set SELinux to permissive mode or disable it completely. For example, to set SELinux to permissive mode:

    setenforce 0

    If you want to disable SELinux at boot time, edit the file /etc/sysconfig/selinux.

  15. To allow users to configure an ElasticSearch cluster, the vm.max_map_count property must be at least 262144. Check this property by running:

    sysctl -n vm.max_map_count

    If the value is less than 262144, add the following line to the end of the /etc/sysctl.conf file (requires root permissions):

    vm.max_map_count = 262144
  16. Ensure the current user, or the user that will be running the Moogsoft processes, has sufficient resource limits by running the following commands as that user:

    ulimit -n
    ulimit -u

    If either of the values returned are less than 65536, add the following to the /etc/security/limits.conf file as root:

    moogsoft	soft    nofile   65536
    moogsoft	hard    nofile   65536
    moogsoft	soft    nproc	65535
    moogsoft	hard    nproc	65535

After you have completed these steps, proceed with your installation or upgrade.

See RPM Installation or Upgrade Moogsoft Enterprise for the instructions relevant to your deployment.