Navigation
This version of the documentation is archived and no longer supported. 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.

Restart the MongoDB Agent

For maintenance or troubleshooting purposes, you may want to temporarily shut down or restart the MongoDB Agent.

Restart the MongoDB Agent

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to restart the MongoDB Agent:

sudo service mongodb-mms-automation-agent restart

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to restart the MongoDB Agent:

sudo restart mongodb-mms-automation-agent

Use these commands if you installed to Linux or macOS using a tar file. Issue the following commands from the directory to which you installed the MongoDB Agent:

pkill -f mongodb-mms-automation-agent
nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &

Start the MongoDB Agent

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to start the MongoDB Agent:

sudo service mongodb-mms-automation-agent start

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to start the MongoDB Agent:

sudo start mongodb-mms-automation-agent

Use this command if you installed to Linux or macOS using a tar file. Issue the following command from the directory to which you installed the MongoDB Agent:

nohup ./mongodb-mms-automation-agent >> automation-agent.log 2>&1 &

Stop the MongoDB Agent

If you installed the MongoDB Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to stop the MongoDB Agent:

sudo service mongodb-mms-automation-agent stop

If you installed the MongoDB Agent using a deb package, as on Ubuntu, issue the following command to stop the MongoDB Agent:

sudo stop mongodb-mms-automation-agent

If you installed to a Linux system or macOS using a tar file, issue the following command to stop the MongoDB Agent:

pkill -f mongodb-mms-automation-agent