Navigation
This version of the documentation is archived and no longer supported. It will be removed on EOL_DATE. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.
This version of the manual is no longer supported. It will be removed on EOL_DATE.

Install Ops Manager with a deb Package

Overview

This tutorial describes how to install Ops Manager using a deb package. If you are instead upgrading an existing deployment, please see Upgrade Ops Manager.

Prerequisites

You must have administrative access on the machines to which you install.

Before you install Ops Manager, you must:

  1. Plan your configuration. See Installation Checklist.

     

  2. Deploy servers that meet the Ops Manager System Requirements.

    Warning

    Failure to configure servers according to the Ops Manager System Requirements, including the requirement to read the MongoDB Production Notes, can lead to production failure.

  3. Install the Ops Manager Application Database and optional Backup Database. The databases require dedicated MongoDB instances. Do not use MongoDB installations that store other data. The Backup Database is required only if you will use the Backup feature.

     

    The Ops Manager Application and Backup Daemon must authenticate to the backing databases as a MongoDB user with appropriate access. See mongo.mongoUri for more information.

    Note

    Ops Manager cannot deploy its own backing databases. You must deploy those databases manually.

Install Ops Manager

To install Ops Manager:

1

Download the latest version of the Ops Manager package.

  1. Open your preferred browser to visit the MongoDB Download Center on MongoDB.com.

    If you start on MongoDB.com instead of following the link above, click Get MongoDB, then select Ops Manager from the Tools menu.

  2. From the Platforms drop-down menu, click one of the following options:

    • Ubuntu 14.04, 16.04 + 18.04
    • Ubuntu 16.04 (ppc64le)
  3. From the Packages drop-down menu, click DEB for x86_64 architecture or DEB (PPC64LE) for ppc64le architecture (Ubuntu 16.04 only).

  4. Click Download.

Note

The downloaded package is named mongodb-mms-<version>.x86_64.deb, where <version> is the version number.

2

Install the Ops Manager package on each server being used for Ops Manager.

Install the .deb package by issuing the following command, where <version> is the version of the .deb package:

sudo dpkg --install mongodb-mms_<version>_x86_64.deb

When installed, the base directory for the Ops Manager software is /opt/mongodb/mms/. The .deb package creates a new system user mongodb-mms under which the server will run.

3

Configure the Ops Manager connection to the Ops Manager Application Database.

On a server that is to run the Ops Manager, open /opt/mongodb/mms/conf/conf-mms.properties with root privileges and configure the settings described here, as appropriate.

Configure the following setting to provide the connection string Ops Manager uses to connect to the database:

To configure Ops Manager to use the Ops Manager Application Database over TLS, configure the following TLS settings.

Ops Manager also uses these settings for TLS connections to Backup Databases

To configure Ops Manager to use Kerberos to manage access to the Ops Manager Application Database, configure the following Kerberos settings:

4

Start Ops Manager.

Issue the following command:

For Ubuntu 15.X or later:

sudo systemctl start mongodb-mms.service

For Ubuntu 14.04+:

sudo start mongodb-mms
5

Open the Ops Manager home page and register the first user.

  1. Enter the following URL in a browser, where <host> is the fully qualified domain name of the server:

    http://<OpsManagerHost>:8080
    
  2. Click the Register link and follow the prompts to register the first user and create the first project. The first user is automatically assigned the Global Owner role.

6

Configure Ops Manager.

Ops Manager walks you through several configuration pages. Required settings are marked with an asterisk. Enter information as appropriate. When configuration is complete, Ops Manager opens the Deployment page.

In addition to the common required settings, the following are required for particular deployment configurations. For more information on a setting, see Ops Manager Configuration Settings.

Configuration Required Settings
If you are running multiple Ops Manager instances behind a load balancer Set Load Balancer Remote IP Header to the name of the header the load balancer will use when forwarding the client’s IP address to the application server. If you set this, do not allow clients to connect directly to any of the application servers. The load balancer must not return cached content. You will set up the additional servers as part of the next steps in this procedure.
If you are using Automation or Backup without an internet connection Set the MongoDB Version Management settings. You will need to put the tarballs for every MongoDB release used in your deployment in the configured Versions Directory on every Ops Manager host. To learn more, see Configure Deployment to Have Limited Internet Access.
7

Copy the gen.key file from the current server to the other servers.

Ops Manager requires an identical gen.key file be stored on both servers running Ops Manager and uses the file to encrypt data at rest in the Ops Manager Application Database and Backup Database.

You must copy the gen.key file from the current server, on which you just installed Ops Manager, to every server that will run Ops Manager. You must copy the gen.key to the other servers before starting Ops Manager on them.

Use scp to copy the gen.key file from the /etc/mongodb-mms/ directory on the current server to the same directory on the other servers.

Important

Back up the gen.key file to a secure location.

8

If you will run multiple Ops Manager Applications behind a load balancer, configure and start the applications.

For each Ops Manager instance, repeat the step to configure the connection to the Ops Manager Application Database and the step to start the application.

For more information on running multiple applications behind a load balancer, see Configure a Highly Available Ops Manager Application.

9

If you will run Ops Manager Backup, configure the Backup Daemon and Backup Storage.

  1. On each Ops Manager server that you activate as a Backup Daemon, create the directory in which to store the head databases. The directory must be:

    • dedicated for this purpose on a local disk partition.
    • sized appropriately according to the Ops Manager System Requirements.
    • writable by the mongodb-mms user.
  2. Configure the Backup Storage you want to use for your snapshots.

  3. Open Ops Manager and verify that you are logged in as the user you registered when installing Ops Manager. This user is the global owner.

  4. Click the Admin link at the top right of the page.

  5. Click the Backup tab.

  6. Follow the prompts to configure the Backup Daemon and Backup Storage. Ops Manager walks you through configuration of the daemon and snapshot storage.

    After you select how to store snapshots, you are prompted to configure the connection string to the Backup Database. If you use filesystem storage for your snapshots, the Backup Database is used only for the oplog store.

    Warning

    Once the connection string is saved, any change to the string requires you to restart all the Ops Manager instances, including those running activated Backup Daemons. Making the change and clicking Save is not sufficient. Ops Manager will continue to use the previous string until you restart the instances.

    <hostname>:<port> Enter a comma-separated list of the fully qualified domain names and port numbers for all replica set members for the Backup Database.

    MongoDB Auth Username and

    MongoDB Auth Password

    Enter the user credentials if the database uses authentication.

    Warning

    If you did not use the credentialstool to encrypt this password, it is stored as plaintext in the database.

    Encrypted Credentials Check this if the user credentials use the Ops Manager credentialstool.
    Use SSL Check this if the database uses SSL. If you select this, you must configure SSL settings Ops Manager. See Ops Manager Configuration Settings.
    Connection Options To add additional connection options, enter them using the MongoDB Connection String URI Format. This field supports un-escaped values only.

Next Steps

Once you have installed the Ops Manager web application to the Ops Manager server, you must next do the following:

  1. Install Ops Manager agents on the servers that run your MongoDB deployments. You can install agents on servers running existing MongoDB deployments or on servers on which you will create new MongoDB deployments. Servers that run your MongoDB deployments must meet the requirements in the MongoDB Production Notes in the MongoDB Manual.

    To install agents, see Provision Servers.

  2. After you install agents, deploy MongoDB to your servers to test connections. If you use Ops Manager Automation, you can deploy MongoDB through the Ops Manager interface. For example, see Deploy a Replica Set.