The legacy Backup and Monitoring Agents can be removed after the MongoDB Agent has been installed.
Remove the Backup Agent from Ops Manager
Stop the Backup Agent
If you installed the Backup Agent using an rpm package, such as on RHEL, CentOS, or SUSE, issue the following command to stop the agent:
sudo service mongodb-mms-backup-agent stopIf you installed the Backup Agent using a deb package, as on Ubuntu, issue the following command to stop the agent:
sudo stop mongodb-mms-backup-agentIf you installed the Backup Agent to Linux or macOS using a tar file, issue the following command to stop the agent:
pkill -f mongodb-mms-backup-agentTo stop the Backup Agent on Windows, open Administrative Tools in the Windows Control Panel and then open Services. In the list of services, select MongoDB Backup Agent, open the Action menu, and select Stop.
Remove from Ops Manager
To remove a Backup Agent from Ops Manager, stop the agent and then wait 24 hours.
Delete from the Server
To delete the Backup Agent from a Linux or macOS server, stop the agent and then remove the mongodb-mms-backup-agent file from the /usr/bin directory. If you installed the agent using a tar.gz file, the agent is in the directory you chose during installation.
To delete the Backup Agent from a Windows server, stop the agent and then use the Windows program uninstaller to remove the MongoDB Backup Agent program.
Remove Monitoring Agents from Ops Manager
Stop the Monitoring Agent
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 stopIf 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-agentIf you installed the Monitoring Agent to Linux or macOS using a tar file, issue the following command to stop the agent:
pkill -f mongodb-mms-monitoring-agentTo stop the Monitoring Agent on Windows, open Administrative Tools in the Windows Control Panel and then open Services. In the list of services, select MongoDB Monitoring Agent, open the Action menu, and select Stop.
Remove from Ops Manager
To remove a Monitoring Agent from Ops Manager, stop the agent and then wait 5 minutes.
When an agent fails to ping Ops Manager for 5 minutes, Ops Manager views the agent as inactive and distributes the agent's assignments to other agents (if available).
Note
The All Agents page displays an inactive agent for 24 hours before Ops Manager removes it from the page.
Delete from the Server
To delete the Monitoring Agent from a Linux or macOS server, stop the agent and then remove the mongodb-mms-monitoring-agent file from the /usr/bin directory. If you installed the agent using a tar.gz file, the agent is in the directory you chose during installation.
To delete the Monitoring Agent from a Windows server, stop the agent and then use the Windows program uninstaller to remove the MongoDB Monitoring Agent program.