- MongoDB Agent >
- Install MongoDB Agent >
- Install the MongoDB Agent to Only Monitor or Backup Deployments
Install the MongoDB Agent to Only Monitor or Backup Deployments¶
You have a project and want to install the MongoDB Agent to monitor and/or back up your MongoDB deployments. You are choosing not to manage your MongoDB deployments at this time.
Review the Prerequisites First
Please review the MongoDB Agent Prerequisites before installing the MongoDB Agent.
- Windows
- macOS
- Ubuntu/Debian
- RHEL/CentOS/SLES/AMZ
- Linux
Use this procedure to install the MongoDB Agent on x86_64 architecture running Microsoft Windows:
Log in to the Cloud Manager.¶
Download the MongoDB Agent.¶
The MongoDB Agent Installation Instructions box displays the following information:
Project ID (Required for binding to a project)
API Key
If you do not have an API Key, click plus icon Generate Key.
Some or all of these values are required in a later step. Copy these values then store them where you can access them later.
Install the MongoDB Agent.¶
- Interactive
- Unattended
After the
MSI
downloads, double-click:mongodb-mms-automation-agent-<VERSION>.windows_x86_64.msi
If a security warning appears, click Run.
At the Configuration/Log Folder step
Provide the directory into which these files are saved.
At the Key Type step, select Agent API Key to bind to a specific project.
Enter the appropriate agent keys.
Note
These keys are provided in the MongoDB Agent Installation Instructions modal described in the previous step.
- Type your Project ID into the Project ID field.
- Type your Agent API Key into the Agent API Key field.
At the MongoDB Paths step, specify the Log and Backup directories
At the Windows Firewall Configuration step, click your preferred firewall configuration.
If you click Configure firewall rules allowing access from only the specified |ipaddr| addresses., type the necessary IPv4 addresses into the provided box.
(Conditional) Windows enables Stealth Mode for the Windows Firewall by default. If you have not disabled it on the MongoDB host on which you are installing the MongoDB Agent, you are asked to disable it. Stealth Mode significantly degrades the performance and capability of the MongoDB Agent. Click Disable Stealth Mode.
(Conditional) Windows does not enable Disk Performance Counters by default. If you have not enabled Disk Performance Counters for the MongoDB host, click Enable Disk Performance Counters. The MongoDB Agent uses these counters for some of its hardware monitoring activities.
Click Install.
Click Finish once setup is complete.
After the MSI
downloads, you can run an unattended
install. You run an unattended install from the command line
in either the command interpreter or PowerShell. To learn
more about unattended installs, see Microsoft’s
documentation on Standard Installer Command-Line Options
To run the MSI
installer unattended from the command
line, you invoke msiexec.exe
with the /q
and /i
flags and a combination of required and optional
parameters:
Parameter | Necessity | Value |
---|---|---|
MMSAPIKEY |
Required | Agent API key of your Cloud Manager project. |
MMSGROUPID |
Required | Unique Identifier of your Cloud Manager project. |
CONFIGLOGDIR |
Optional | Absolute file path to which Cloud Manager should write the MongoDB Agent configuration file. |
LOGFILE |
Optional | Absolute file path to which Cloud Manager should write the MongoDB Agent log |
MMSCONFIGBACKUP |
Optional | Absolute file path to the Cloud Manager automation configuration backup JSON file. |
Example
To install the MongoDB Agent unattended, you would
invoke msiexec.exe
with the following options:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
(Optional) Change the location of the MongoDB Agent binaries and configuration backup files.¶
By default, the MongoDB binaries and Cloud Manager configuration backup
file are located in %SystemDrive%\MMSMongoDB\versions
.
Note
Windows sets the %SystemDrive%
environment variable to the
drive on which you installed Windows. By default, you would be
directed to install Windows on the C:
drive. To find your
%SystemDrive%
, issue with following command from PowerShell:
If you want to store these files in a different directory, follow these procedures:
To change the location of the MongoDB Agent Binaries
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click to the right of the path shown in Download Directory (Windows).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an MongoDB Agent. Use Windows Explorer to move the file or issue the following command from a Command Prompt or PowerShell:
Important
Make sure the system user that runs the MongoDB Agent can write to this new directory. This is usually the
SYSTEM
user, which requires no additional configuration unless you changed the user.
To change the location of the MongoDB Agent configuration backup
Open the MongoDB Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file. ReplaceX
with the drive letter on which your backup is stored.Save the MongoDB Agent configuration file.
Move the configuration backup file to the new directory. Use Windows Explorer to move the file or issue the following command from a Command Prompt or PowerShell:
Repeat the installation procedure for each MongoDB host.¶
Use this procedure to install the MongoDB Agent on x86_64 architecture running macOS 10.8 or later:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Mac OSX (10.8 and above) - TAR.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the macOS Terminal.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
macOS:
Extract the MongoDB Agent.¶
You can install the MongoDB Agent in any directory. If you want to move the archive to another directory before extracting, you may do so.
To install the MongoDB Agent, extract the archive:
Change to the extracted binary directory.¶
Change into the directory that was created after extracting the MongoDB Agent binary:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Optional: Create the binary, log, and data directories.¶
Create the following directories to store files that the MongoDB Agent needs.
Note
The use of mongodb-mms-automation
in the file path is a
legacy artifact and does not mean that the MongoDB Agent is being
installed with Automation configured.
Component | Default Directory | Description |
---|---|---|
Binaries | /var/lib/mongodb-mms-automation |
These are the binaries that the MongoDB Agent manages. They include the MongoDB Agent, BI Connector, and MongoDB binaries. |
MongoDB Agent logs | /var/log/mongodb-mms-automation |
These are the log files that the MongoDB Agent creates. |
MongoDB databases | /data |
These are the databases that the MongoDB Agent creates and manages. |
Run the following commands to create the directories:
Using a Different Path than /var/lib
By default, the Agent binaries and Cloud Manager
configuration backup file are located in
/var/lib/mongodb-mms-automation
.
If you want to store these files in a different
directory, follow these procedures:
To change the location of the Agent Binaries:
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click the pencil icon to the right of the path shown in Download Directory (Linux/MacOS).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an Agent.
To change the location of the Agent configuration backup:
Open the Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file.Save the Agent configuration file.
Move the configuration backup file to the new directory.
Assign permissions to the system user that runs the MongoDB Agent.¶
Run the following commands:
Start the MongoDB Agent.¶
From the directory in which you installed the MongoDB Agent and as the system user you created in the last step, issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Use this procedure to install the MongoDB Agent:
- Intel/AMD
- PowerPC
- IBM ZSeries
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
On x86_64 architecture running, Debian 8, Debian 9, Ubuntu 18.04, or Ubuntu 20.04:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Debian 8/9/10, Ubuntu 16.X/18.X/20.x - DEB.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
Ubuntu 18.04/20.04 or Debian 9/10 for 64-bit x86:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data. For an existing MongoDB
deployment, ensure that the directory is owned by the mongodb
user. If no MongoDB deployment exists, create the directory and set
the owner.
To create a data directory and set the owner as the mongodb
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
On PowerPC architecture running Ubuntu 18.04 (managing MongoDB 3.4 or later deployments only):
- DEB package
- TAR archive
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
Using a deb
package:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Ubuntu 16.X Power (ppc64le) - DEB.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
Ubuntu 16.04:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data. For an existing MongoDB
deployment, ensure that the directory is owned by the mongodb
user. If no MongoDB deployment exists, create the directory and set
the owner.
To create a data directory and set the owner as the mongodb
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Using a tar
archive:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Ubuntu 16.X Power (ppc64le) - TAR.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
Ubuntu 16.04 for PowerPC:
Extract the MongoDB Agent.¶
You can install the MongoDB Agent in any directory. If you want to move the archive to another directory before extracting, you may do so.
To install the MongoDB Agent, extract the archive:
Change to the extracted binary directory.¶
Change into the directory that was created after extracting the MongoDB Agent binary:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Optional: Create the binary, log, and data directories.¶
Create the following directories to store files that the MongoDB Agent needs.
Note
The use of mongodb-mms-automation
in the file path is a
legacy artifact and does not mean that the MongoDB Agent is being
installed with Automation configured.
Component | Default Directory | Description |
---|---|---|
Binaries | /var/lib/mongodb-mms-automation |
These are the binaries that the MongoDB Agent manages. They include the MongoDB Agent, BI Connector, and MongoDB binaries. |
MongoDB Agent logs | /var/log/mongodb-mms-automation |
These are the log files that the MongoDB Agent creates. |
MongoDB databases | /data |
These are the databases that the MongoDB Agent creates and manages. |
Run the following commands to create the directories:
Using a Different Path than /var/lib
By default, the Agent binaries and Cloud Manager
configuration backup file are located in
/var/lib/mongodb-mms-automation
.
If you want to store these files in a different
directory, follow these procedures:
To change the location of the Agent Binaries:
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click the pencil icon to the right of the path shown in Download Directory (Linux/MacOS).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an Agent.
To change the location of the Agent configuration backup:
Open the Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file.Save the Agent configuration file.
Move the configuration backup file to the new directory.
Assign permissions to the system user that runs the MongoDB Agent.¶
Run the following commands:
Start the MongoDB Agent.¶
From the directory in which you installed the MongoDB Agent and as the system user you created in the last step, issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
On zSeries architecture running Ubuntu 18.04 using a
deb
package:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Ubuntu 18.X Z-Series (s390x) - DEB.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
Ubuntu 18.04 for IBM zSeries:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data. For an existing MongoDB
deployment, ensure that the directory is owned by the mongodb
user. If no MongoDB deployment exists, create the directory and set
the owner.
To create a data directory and set the owner as the mongodb
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Use this procedure to install the MongoDB Agent:
- Intel/AMD
- PowerPC
- IBM ZSeries
On x86_64 architecture:
- Amazon Linux
- RHEL/CentOS (7.x/8.x), SUSE12/15, Amazon Linux 2
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
Running Amazon Linux using an rpm
package:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Amazon Linux - RPM.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
64-bit x86:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data and must be owned by the
mongod
user. For an existing MongoDB deployment, ensure the
directory has the mongod
user as owner. If no MongoDB deployment
exists, create the directory and set the owner.
The following commands create a data directory and set the owner as
the mongod
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Running RHEL / CentOS 7.x, SUSE12, SUSE15, or Amazon Linux 2:
- RPM package
- TAR archive
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
Using an rpm
package:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click RHEL/CentOS (7.X/8.X), SUSE12, SUSE15, Amazon Linux2 - RPM.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
RHEL 7 for 64-bit x86:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data and must be owned by the
mongod
user. For an existing MongoDB deployment, ensure the
directory has the mongod
user as owner. If no MongoDB deployment
exists, create the directory and set the owner.
The following commands create a data directory and set the owner as
the mongod
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Using a tar
archive:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click RHEL/CentOS (7.X/8.X), SUSE12, SUSE15, Amazon Linux 2 - TAR.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
RHEL for 64-bit x86:
Extract the MongoDB Agent.¶
You can install the MongoDB Agent in any directory. If you want to move the archive to another directory before extracting, you may do so.
To install the MongoDB Agent, extract the archive:
Change to the extracted binary directory.¶
Change into the directory that was created after extracting the MongoDB Agent binary:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Optional: Create the binary, log, and data directories.¶
Create the following directories to store files that the MongoDB Agent needs.
Note
The use of mongodb-mms-automation
in the file path is a
legacy artifact and does not mean that the MongoDB Agent is being
installed with Automation configured.
Component | Default Directory | Description |
---|---|---|
Binaries | /var/lib/mongodb-mms-automation |
These are the binaries that the MongoDB Agent manages. They include the MongoDB Agent, BI Connector, and MongoDB binaries. |
MongoDB Agent logs | /var/log/mongodb-mms-automation |
These are the log files that the MongoDB Agent creates. |
MongoDB databases | /data |
These are the databases that the MongoDB Agent creates and manages. |
Run the following commands to create the directories:
Using a Different Path than /var/lib
By default, the Agent binaries and Cloud Manager
configuration backup file are located in
/var/lib/mongodb-mms-automation
.
If you want to store these files in a different
directory, follow these procedures:
To change the location of the Agent Binaries:
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click the pencil icon to the right of the path shown in Download Directory (Linux/MacOS).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an Agent.
To change the location of the Agent configuration backup:
Open the Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file.Save the Agent configuration file.
Move the configuration backup file to the new directory.
Assign permissions to the system user that runs the MongoDB Agent.¶
Run the following commands:
Start the MongoDB Agent.¶
From the directory in which you installed the MongoDB Agent and as the system user you created in the last step, issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
On RHEL / CentOS (7.x) on PowerPC architecture (managing MongoDB 3.4 or later deployments):
- RPM package
- TAR archive
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
Using an rpm
package:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click RHEL/CentOS (7.X) Power (ppc64le) - RPM.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
RHEL 7 for PowerPC:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data and must be owned by the
mongod
user. For an existing MongoDB deployment, ensure the
directory has the mongod
user as owner. If no MongoDB deployment
exists, create the directory and set the owner.
The following commands create a data directory and set the owner as
the mongod
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Using a tar
archive:
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click RHEL/CentOS (7.X) Power (ppc64le) - TAR.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
RHEL 7 for PowerPC:
Extract the MongoDB Agent.¶
You can install the MongoDB Agent in any directory. If you want to move the archive to another directory before extracting, you may do so.
To install the MongoDB Agent, extract the archive:
Change to the extracted binary directory.¶
Change into the directory that was created after extracting the MongoDB Agent binary:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Optional: Create the binary, log, and data directories.¶
Create the following directories to store files that the MongoDB Agent needs.
Note
The use of mongodb-mms-automation
in the file path is a
legacy artifact and does not mean that the MongoDB Agent is being
installed with Automation configured.
Component | Default Directory | Description |
---|---|---|
Binaries | /var/lib/mongodb-mms-automation |
These are the binaries that the MongoDB Agent manages. They include the MongoDB Agent, BI Connector, and MongoDB binaries. |
MongoDB Agent logs | /var/log/mongodb-mms-automation |
These are the log files that the MongoDB Agent creates. |
MongoDB databases | /data |
These are the databases that the MongoDB Agent creates and manages. |
Run the following commands to create the directories:
Using a Different Path than /var/lib
By default, the Agent binaries and Cloud Manager
configuration backup file are located in
/var/lib/mongodb-mms-automation
.
If you want to store these files in a different
directory, follow these procedures:
To change the location of the Agent Binaries:
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click the pencil icon to the right of the path shown in Download Directory (Linux/MacOS).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an Agent.
To change the location of the Agent configuration backup:
Open the Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file.Save the Agent configuration file.
Move the configuration backup file to the new directory.
Assign permissions to the system user that runs the MongoDB Agent.¶
Run the following commands:
Start the MongoDB Agent.¶
From the directory in which you installed the MongoDB Agent and as the system user you created in the last step, issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
On zSeries architecture (managing MongoDB 3.4 or later deployments):
Running RHEL / CentOS 7.x using the rpm
package manager:
Important
Starting with version 10.24.0.6714-1, when you install the MongoDB Agent
using deb
or rpm
packages, the package doesn’t add
MongoDB binaries to the PATH
environment variable.
If your deployment depends on the presence of MongoDB binaries in
the PATH
, you must manually add the paths to MongoDB
binaries to the PATH
. To learn how to update environment
variables, refer to your operating system’s documentation.
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click RHEL 7.X Z-Series (s390x) - RPM.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
RHEL 7 for IBM zSeries:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
automation-agent.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Prepare the data directory.¶
The data directory stores MongoDB data and must be owned by the
mongod
user. For an existing MongoDB deployment, ensure the
directory has the mongod
user as owner. If no MongoDB deployment
exists, create the directory and set the owner.
The following commands create a data directory and set the owner as
the mongod
user:
Start the MongoDB Agent.¶
Issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.
Repeat the installation procedure for each MongoDB host.¶
Use this procedure to install Linux systems that do not use
deb
or rpm
packages.
Log in to the Cloud Manager.¶
Navigate to the MongoDB Agent Download page.¶
If you have a project with existing deployments, you can install the MongoDB Agent on your existing deployments:
- Select the desired Project from the Context menu.
- Click Deployment.
- Click Agents.
- Click Downloads & Settings.
- From the Select Your Server’s Operating System menu, click Other Linux - TAR.
Download the latest version of the MongoDB Agent.¶
Note
Starting with this step, follow the MongoDB Agent installation modal and copy the provided commands into the Linux shell.
From a system shell on the host that will run the MongoDB Agent,
issue the following curl
command to download the installer for
Generic 64-bit Linux:
Extract the MongoDB Agent.¶
You can install the MongoDB Agent in any directory. If you want to move the archive to another directory before extracting, you may do so.
To install the MongoDB Agent, extract the archive:
Change to the extracted binary directory.¶
Change into the directory that was created after extracting the MongoDB Agent binary:
Edit the MongoDB Agent configuration file.¶
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Update the following configuration options:
Key | Value |
---|---|
mmsGroupId |
ProjectID of your project. |
mmsApiKey |
Agent API key of your project. |
Optional: Configure the MongoDB Agent to use a proxy server.¶
To configure the MongoDB Agent to connect to Cloud Manager via a proxy
server, you must specify the server in the httpProxy
environment variable.
In the directory where you installed the MongoDB Agent, open the
local.config
file in your preferred text editor.
Add the following configuration key:
Key | Value |
---|---|
httpProxy |
URL (hostname and port) of to your proxy server. |
Optional: Create the binary, log, and data directories.¶
Create the following directories to store files that the MongoDB Agent needs.
Note
The use of mongodb-mms-automation
in the file path is a
legacy artifact and does not mean that the MongoDB Agent is being
installed with Automation configured.
Component | Default Directory | Description |
---|---|---|
Binaries | /var/lib/mongodb-mms-automation |
These are the binaries that the MongoDB Agent manages. They include the MongoDB Agent, BI Connector, and MongoDB binaries. |
MongoDB Agent logs | /var/log/mongodb-mms-automation |
These are the log files that the MongoDB Agent creates. |
MongoDB databases | /data |
These are the databases that the MongoDB Agent creates and manages. |
Run the following commands to create the directories:
Using a Different Path than /var/lib
By default, the Agent binaries and Cloud Manager
configuration backup file are located in
/var/lib/mongodb-mms-automation
.
If you want to store these files in a different
directory, follow these procedures:
To change the location of the Agent Binaries:
Click Deployment, then Agents, and then Downloads & Settings.
Below the Download Directory heading, click the pencil icon to the right of the path shown in Download Directory (Linux/MacOS).
Change the path to the new path you want.
Click Save.
Create the new directory you specified on each host that runs an Agent.
To change the location of the Agent configuration backup:
Open the Agent configuration file in your preferred text editor.
Change the
mmsConfigBackup
setting to the new path for the configuration backup file.Save the Agent configuration file.
Move the configuration backup file to the new directory.
Assign permissions to the system user that runs the MongoDB Agent.¶
Run the following commands:
Start the MongoDB Agent.¶
From the directory in which you installed the MongoDB Agent and as the system user you created in the last step, issue the following command:
Finish the installation of the MongoDB Agent.¶
In the Install Agent Instructions modal, click Done.