> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Start or Stop the Monitoring Agent

**Important: Legacy Monitoring Agent is EoL for Ops Manager 4.4**

[Update](https://www.mongodb.com/docs/ops-manager/current/tutorial/update-mongodb-agent-from-monitoring-agent.md#std-label-update-mongodb-agent-from-monitoring-agent) from your self-managed legacy Monitoring Agent to the [MongoDB Agent.](https://www.mongodb.com/docs/ops-manager/current/tutorial/nav/mongodb-agent.md#std-label-mongodb-agent)

## 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.

## Procedures

### Start the Monitoring Agent

#### 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:

```none
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:

```none
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:

```none
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:

```none
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:

```none
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:

```none
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`.
