Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mongo_ops_add_existing_server [2020/05/26 09:56] – andonovj | mongo_ops_add_existing_server [2020/07/02 10:04] (current) – andonovj | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | =====Overview===== | ||
+ | So, if we want to add existing server, under the wing of MongoOps Manager, we have to do the following: | ||
+ | |||
+ | - Download & Install the RPM on the | ||
+ | - 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: | ||
+ | |||
+ | =====Download & Install===== | ||
+ | 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 :) | ||
+ | |||
+ | < | ||
+ | [root@dbpahfgcl ~]# curl -OL http:// | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 100 13.5M 0 13.5M 0 | ||
+ | [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. | ||
+ | |||
+ | =====Configure the Agent===== | ||
+ | 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: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | |||
+ | =====Start===== | ||
+ | Once all this is done, we can start the agent as follows: | ||
+ | |||
+ | < | ||
+ | [root@dbpahfgcl ~]# vi / | ||
+ | [root@dbpahfgcl ~]# chown mongod: | ||
+ | [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 | ||
+ | | ||
+ | | ||
+ | Process: 5759 ExecStartPre=/ | ||
+ | Process: 5757 ExecStartPre=/ | ||
+ | Main PID: 5762 (mongodb-mms-aut) | ||
+ | | ||
+ | | ||
+ | |||
+ | 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]: | ||
+ | Jul 01 10:33:30 dbpahfgcl mongodb-mms-automation-agent[5762]: | ||
+ | Jul 01 10:33:30 dbpahfgcl mongodb-mms-automation-agent[5762]: | ||
+ | Jul 01 10:33:31 dbpahfgcl mongodb-mms-automation-agent[5762]: | ||
+ | Hint: Some lines were ellipsized, use -l to show in full. | ||
+ | [root@dbpahfgcl ~]# | ||
+ | |||
+ | </ | ||
+ | |||
+ | =====Configure Replication Set===== | ||
+ | That easily can be done from the MongoOps manager, but before you do, be sure to install the required packages: | ||
+ | |||
+ | < | ||
+ | [root@dbpaifgcl ~]# yum -y install cyrus-sasl cyrus-sasl-gssapi cyrus-sasl-plain krb5-libs libcurl libpcap lm_sensors-libs net-snmp net-snmp-agent-libs openldap openssl rpm-libs tcp_wrappers-libs | ||
+ | Loaded plugins: product-id, search-disabled-repos, | ||
+ | Package krb5-libs-1.15.1-46.el7.x86_64 already installed and latest version | ||
+ | Package libcurl-7.29.0-57.el7.x86_64 already installed and latest version | ||
+ | Package 14: | ||
+ | Package openldap-2.4.44-21.el7_6.x86_64 already installed and latest version | ||
+ | Package 1: | ||
+ | Package rpm-libs-4.11.3-43.el7.x86_64 already installed and latest version | ||
+ | Package tcp_wrappers-libs-7.6-77.el7.x86_64 already installed and latest version | ||
+ | Resolving Dependencies | ||
+ | --> Running transaction check | ||
+ | ---> Package cyrus-sasl.x86_64 0: | ||
+ | ---> Package cyrus-sasl-gssapi.x86_64 0: | ||
+ | ---> Package cyrus-sasl-plain.x86_64 0: | ||
+ | ---> Package lm_sensors-libs.x86_64 0: | ||
+ | ---> Package net-snmp.x86_64 1: | ||
+ | --> Processing Dependency: net-snmp-libs = 1: | ||
+ | --> Processing Dependency: perl(Data:: | ||
+ | --> Processing Dependency: libnetsnmp.so.31()(64bit) for package: 1: | ||
+ | ---> Package net-snmp-agent-libs.x86_64 1: | ||
+ | --> Running transaction check | ||
+ | ---> Package net-snmp-libs.x86_64 1: | ||
+ | ---> Package perl-Data-Dumper.x86_64 0: | ||
+ | --> Finished Dependency Resolution | ||
+ | |||
+ | Dependencies Resolved | ||
+ | |||
+ | ===================================================================================================================== | ||
+ | | ||
+ | ===================================================================================================================== | ||
+ | Installing: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | Installing for dependencies: | ||
+ | | ||
+ | | ||
+ | |||
+ | Transaction Summary | ||
+ | ===================================================================================================================== | ||
+ | Install | ||
+ | |||
+ | Total download size: 2.0 M | ||
+ | Installed size: 6.2 M | ||
+ | Downloading packages: | ||
+ | (1/8): cyrus-sasl-2.1.26-23.el7.x86_64.rpm | ||
+ | (2/8): cyrus-sasl-gssapi-2.1.26-23.el7.x86_64.rpm | ||
+ | (3/8): cyrus-sasl-plain-2.1.26-23.el7.x86_64.rpm | ||
+ | (4/8): lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64.rpm | ||
+ | (5/8): net-snmp-5.7.2-48.el7_8.1.x86_64.rpm | ||
+ | (6/8): net-snmp-agent-libs-5.7.2-48.el7_8.1.x86_64.rpm | ||
+ | (7/8): net-snmp-libs-5.7.2-48.el7_8.1.x86_64.rpm | ||
+ | (8/8): perl-Data-Dumper-2.145-3.el7.x86_64.rpm | ||
+ | --------------------------------------------------------------------------------------------------------------------- | ||
+ | Total 1.1 MB/s | 2.0 MB 00:00:01 | ||
+ | Running transaction check | ||
+ | Running transaction test | ||
+ | Transaction test succeeded | ||
+ | Running transaction | ||
+ | Warning: RPMDB altered outside of yum. | ||
+ | Installing : 1: | ||
+ | Installing : lm_sensors-libs-3.4.0-8.20160601gitf9185e5.el7.x86_64 | ||
+ | Installing : 1: | ||
+ | Installing : perl-Data-Dumper-2.145-3.el7.x86_64 | ||
+ | Installing : 1: | ||
+ | Installing : cyrus-sasl-gssapi-2.1.26-23.el7.x86_64 | ||
+ | Installing : cyrus-sasl-2.1.26-23.el7.x86_64 | ||
+ | Installing : cyrus-sasl-plain-2.1.26-23.el7.x86_64 | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | Verifying | ||
+ | |||
+ | Installed: | ||
+ | cyrus-sasl.x86_64 0: | ||
+ | cyrus-sasl-plain.x86_64 0: | ||
+ | net-snmp.x86_64 1: | ||
+ | |||
+ | Dependency Installed: | ||
+ | net-snmp-libs.x86_64 1: | ||
+ | |||
+ | Complete! | ||
+ | [root@dbpaifgcl ~]# | ||
+ | |||
+ | </ | ||
+ | |||
TODO | TODO | ||
https:// | https:// |