Start or Stop the Monitoring Agent
On this page
- OAuth 2.0 authentication for programmatic access to Cloud Manager is available as a Preview feature.
- The feature and the corresponding documentation might change at any time during the Preview period. To use OAuth 2.0 authentication, create a service account to use in your requests to the Cloud Manager Public API.
Important
Legacy Monitoring Agent has been removed
This Agent has been updated from your self-managed legacy Monitoring Agent to the MongoDB Agent.
Overview
You can shut down and restart Monitoring Agents. For proper operation of Cloud Manager your Cloud 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:
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
.