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.

Start or Stop the Monitoring Agent

On this page

Overview

You can shut down and restart Monitoring Agents. For proper operation of Ops Manager your Ops Manager project must have at least one Monitoring Agent running.

Beginning with Monitoring Agent version 5.0.0, you can run multiple agents to distribute monitoring assignments. If you shut an agent down, Ops Manager redistributes the agent’s assignments. For more information, see Multiple Monitoring Agents.

Procedures

Start the Monitoring Agent

The procedure to Install the Monitoring Agent includes a step to start the agent. If you must restart the agent, use the following procedure.

Start an Agent Installed with an rpm Package

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

sudo service mongodb-mms-monitoring-agent start

Start an Agent Installed with a deb Package

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

sudo start mongodb-mms-monitoring-agent

Start an Agent Installed with a tar File

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

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

Start the Monitoring Agent on Windows

In Windows Control Panel, open Administrative Tools and then Services. In the list of services, select MongoDB Monitoring Agent. Select the Action menu and select Start.

Stop the Monitoring Agent

You must have at least one Monitoring Agent running to monitor your deployment.

Stop an Agent Installed with an rpm Package

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

sudo service mongodb-mms-monitoring-agent stop

Stop an Agent Installed with a deb Package

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

sudo stop mongodb-mms-monitoring-agent

Stop an Agent Installed with a tar File

If you installed to Linux or OSX using a tar file, issue the following command to stop the Monitoring Agent:

pkill -f mongodb-mms-monitoring-agent

Stop the Monitoring Agent on Windows

In Windows Control Panel, open Administrative Tools and then Services. In the list of services, select MongoDB Monitoring Agent. Select the Action menu and select Stop.