Moogsoft Docs

Pre-install Moogsoft AIOps

Follow these steps to prepare a host for an RPM installation of Moogsoft AIOps. You don't need to complete these steps if you are not using the RPM installation.

Before You Begin

Before you begin your installation, verify the following:

Install Prerequisites for Moogsoft AIOps

Install the prerequisites for Moogsoft AIOps as follows:

  1. Install the Extra Packages for Enterprise Linux: EPEL Yum repository. For example:

    yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
  2. Verify the creation of the file/etc/yum.repos.d/epel.repo

  3. Install the "el7" MySQL Community Yum repository: For example:

    yum -y install http://repo.mysql.com/mysql57-community-release-el7.rpm

    Verify the creation of the file /etc/yum.repos.d/mysql-community.repo.

  4. Install the RabbitMQ Erlang el7 package. For example:

    yum -y install https://github.com/rabbitmq/erlang-rpm/releases/download/v20.1.7/erlang-20.1.7-1.el7.centos.x86_64.rpm

    Alternatively you can find the file at https://github.com/rabbitmq/erlang-rpm/releases/tag/v20.1.7.

  5. Install the RabbitMQ Yum repository: For example:

    curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
  6. Verify the creation of the file /etc/yum.repos.d/rabbitmq_rabbitmq-server.repo.

  7. Install the Elasticsearch public key. For example:

    rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
  8. Create the Elasticsearch Yum repository: /etc/yum.repos.d/elasticsearch.repo with the following contents:

    [elasticsearch-5.x]
    name=Elasticsearch repository for 5.x packages
    baseurl=https://artifacts.elastic.co/packages/5.x/yum
    gpgcheck=1
    gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
    enabled=1
    autorefresh=1
    type=rpm-md
  9. Create a Bash script named create_nginx_repo.sh with the following contents:

    #!/bin/bash
    
    echo '[nginx]' > /etc/yum.repos.d/nginx.repo
    echo 'name=nginx repo' >> /etc/yum.repos.d/nginx.repo
    echo 'baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/' >> /etc/yum.repos.d/nginx.repo
    echo 'gpgcheck=0' >> /etc/yum.repos.d/nginx.repo
    echo 'enabled=1' >> /etc/yum.repos.d/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;;
    esac
  10. Execute create_nginx_repo.sh to create the Nginx Yum repo. For example:

     bash create_nginx_repo.sh
  11. Verify the NSS and OpenSSL packages are up to date for your system. For example:

    yum -y update nss openssl
  12. Create the Moogsoft Yum repository as a new file /etc/yum.repos.d/moogsoft-aiops.repo with the following contents:

    [moogsoft-aiops]
    name=moogsoft-aiops-latest
    baseurl=https://<login>:<password>@speedy.moogsoft.com/repo/aiops/esr
    enabled=1
    gpgcheck=0
    sslverify=0
  13. Set SELinux to permissive mode or disable completely. For example to set SELinux to permissive mode:

    setenforce 0

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

Next step: Install Moogsoft AIOps on a Single Host with RPM