This is an old revision of the document!


So, if we want to add existing server, under the wing of MongoOps Manager, we have to do the following:

  1. Download & Install the RPM on the
  2. Configure the agents with the MongoOps using ApiKey and Endpoint URL

That is that. After that, we will be able to install whatever we want from the MongoOps manager. So let's get started:

In fact, when you go to MongoOps → All clusters → Agents → Download & Settings, there is a easy way how to do the steps. Just follow them :)

Download & Install

[root@dbpahfgcl ~]# curl -OL http://secretMongoOpsUrl:8080/download/agent/automation/mongodb-mms-automation-agent-manager-10.2.18.5978-1.x86_64.rhel7.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13.5M    0 13.5M    0     0   208M      0 --:--:-- --:--:-- --:--:--  211M
[root@dbpahfgcl ~]#
[root@dbpahfgcl ~]#
[root@dbpahfgcl ~]# rpm -U mongodb-mms-automation-agent-manager-10.2.18.5978-1.x86_64.rhel7.rpm
[root@dbpahfgcl ~]#

You see, wasn't so hard :) Now for the tricky part.

To configure the agent we need:

  • GroupId
  • ApiKey
  • MongoOps URL

In my case they are:

  • Secret
  • Secret
  • and Secret

You have to configure them in:

Configure the Agent

/etc/mongodb-mms/automation-agent.config

Once all this is done, we can start the agent as follows:

Start the agent

[root@dbpahfgcl ~]# vi /etc/mongodb-mms/automation-agent.config
[root@dbpahfgcl ~]# chown mongod:mongod /data
[root@dbpahfgcl ~]# systemctl start mongodb-mms-automation-agent.service
[root@dbpahfgcl ~]# systemctl status mongodb-mms-automation-agent.service
● mongodb-mms-automation-agent.service - MongoDB MMS Automation Agent
   Loaded: loaded (/etc/systemd/system/mongodb-mms-automation-agent.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2020-07-01 10:33:30 EDT; 4s ago
  Process: 5759 ExecStartPre=/usr/bin/chown -R mongod:mongod /var/run/mongodb-mms-automation (code=exited, status=0/SUCCESS)
  Process: 5757 ExecStartPre=/usr/bin/mkdir /var/run/mongodb-mms-automation (code=exited, status=0/SUCCESS)
 Main PID: 5762 (mongodb-mms-aut)
   CGroup: /system.slice/mongodb-mms-automation-agent.service
           └─5762 /opt/mongodb-mms-automation/bin/mongodb-mms-automation-agent -f /etc/mongodb-mms/automation-agen...

Jul 01 10:33:30 dbpahfgcl systemd[1]: Starting MongoDB MMS Automation Agent...
Jul 01 10:33:30 dbpahfgcl systemd[1]: Started MongoDB MMS Automation Agent.
Jul 01 10:33:30 dbpahfgcl mongodb-mms-automation-agent[5762]: [2020/07/01 10:33:30.531] [.info] [cm/util/sysdep...ock
Jul 01 10:33:30 dbpahfgcl mongodb-mms-automation-agent[5762]: [10:33:30.636] Killing all running mongodb-mms-mo... *$
Jul 01 10:33:30 dbpahfgcl mongodb-mms-automation-agent[5762]: [10:33:30.670] Killing all running mongodb-mms-ba... *$
Jul 01 10:33:31 dbpahfgcl mongodb-mms-automation-agent[5762]: [10:33:31.815] All 0 Mongo processes are in goal ...ied
Hint: Some lines were ellipsized, use -l to show in full.
[root@dbpahfgcl ~]#

TODO

https://docs.opsmanager.mongodb.com/v4.0/tutorial/add-servers-automation/

  • mongo_ops_add_existing_server.1593614053.txt.gz
  • Last modified: 2020/07/01 14:34
  • by andonovj