Skip to end of metadata
Go to start of metadata

This topic guides you through the steps to prep a host for an RPM installation of Moogsoft AIOps. You don't need to do 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 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 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 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. Install the Apache Tomcat native package as follows. Be sure to include your own credentials for speedy.moogsoft.com:

    yum -y install https://<login>:<password>@speedy.moogsoft.com/offline/7/tomcat-native-1.1.34-1.el7.x86_64.rpm
  14. 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