Description of MMS configuration options (7)

Source: Internet
Author: User
To start the MMS service, you must configure setup parameters for the application's URL and email in the conf-mms.properties file. At the same time, if the file contains a clear password, you need to change the user group to mongodb-mms and set the permission to 600. The following two parameters must be set in the application URL. Mms. centralUrl type: String

To start the MMS service, you must configure setup parameters for the application's URL and email in the conf-mms.properties file. At the same time, if the file contains a clear password, you need to change the user group to mongodb-mms and set the permission to 600. The following two parameters must be set in the application URL. Mms. centralUrl type: String

To start the MMS service, you must configure setup parameters for the application's URL and email in the conf-mms.properties file. At the same time, if the file contains a clear password, you need to change the user group to mongodb-mms and set the permission to 600. The following two parameters must be set in the application URL. Mms. centralUrl type: Required for strings. MMS Monitoring Service. Complete URL, including the port number. For example, mms. centralUrl = http://mms.ttlsa.com: 8080mms. backupCentralUrl type: String required. The user name and port of the backup service. Such as mms. backupCentralUrl = http://mms.ttlsa.com: 8081 must set this option even if you only use the MMS Monitoring Service. The following email address settings are mandatory. Otherwise, the MMS monitoring service cannot be started. Mms. fromEmailAddr type: Required for strings. This email address is used to send General emails, such as alarms. It can include the alias of the email address. Example: mms. fromEmailAddr = MMS Alerts Mms. replyToEmailAddr type: Required for strings. This email address sends a reply to a normal email. Example: mms. replyToEmailAddr = mms-no-reply@ttlsa.commms.adminFromEmailAddr type: String required. The email address sends messages from the MMS administrator. Example: mms. adminFromEmailAddr = MMS Admin Mms. adminEmailAddr type: Required for strings. This email address sends a message or replies to the MMS administrator. Example: mms. adminEmailAddr = mms-admin@ttlsa.com? Mms. bounceEmailAddr type: Required for strings. This email address sends a return email. Example: mms. bounceEmailAddr = bounce@ttlsa.com email service set mms. emailDaoClass type: String email interface used. For AWS's simple email service, specify com. xgen. svc. core. dao. email. awsEmailDao, such as mms. emailDaoClass = com. xgen. svc. core. dao. email. awsEmailDao for AWS's simple email service, also look at aws. accesskey and aws. secretkey. For JavaEmailDao, specify com. xgen. svc. core. dao. email. javaEmailDao, for example, mms. emailDaoClass = com. xgen. svc. core. dao. email. javaEmailDaomms. mail. transport Type: String, default: smtp specifies the transport protocol SMTP or SMTPS of your email provider. For example, mms. mail. transport = smtpmms. mail. hostname type: String. Default: localhost specifies the email service host name of your email provider. For example, mms. mail. hostname = mail. ttlsa. commms. mail. port type: Numeric value. Default Value: 25 indicates the email transmission port of your email provider. For example, mms. mail. port = 25mms. mail. tls type: Boolean. Default: false indicates whether the transport protocol runs on TLS. For example, mms. mail. tls = falsemms. mail. username type: User Name of the string email account. If this parameter is not set, SMTP verification is disabled by default. Mms. mail. password type: password of the string email account. If this parameter is not set, SMTP verification is disabled by default. Aws. accesskey is required if you use AWS's simple email service. The access key ID. Aws. secretkey is required if you use AWS's simple email service. Twilio SMS reminder settings receive notification via SMS. You must have a Twilio account and specify the Twilio account information in the configuration file. Twilio. account. sid type: String Twilio account ID. Twilio. auth. token type: API token of the string Twilio. Twilio. from. num type: String Twilio phone number. MongoDB sets the mongo. mongoUri type: Required for strings. The connection string of the MMS connection to the mongodb server. That is, the MMS application database. If you specify a replica set: mongo. mongoUri = mongodb: // db1.example.net: 40000, db2.example.net: 40000, db3.example.net: 40000, if MongoDB has access control, add : @ To specify the user name and password. At the same time, add? /Admin to specify the verification library. For example: mongo. mongoUri = mongodb: // mongodbuser1: password@mydb1.example.net: 40000/admin about the URI format of the connection string can be viewed in previous articles. Mongo. replicaSet type: string if mongo. Replica URI uses a replica set, you must specify the name of the replica set. For example, mongo. replicaSet = mmsreplsetmongo. backupdb. Invalid URI type: Required for string MMS backup. Connect to MMS to back up the connection string of the Blockstore database. It must be another independent MongoDB server. For example, mongo. backupdb. mongoUri = mongodb: // db5.example.net: 50000, db6.example.net: 50000, db7.example.net: 50000mongo. backupdb. replicaSet type: String MMS backup required. If mongo. backupdb. Replica URI uses a replica set, you must specify the replica set name. For example, mongo. backupdb. replicaSet = mmsbackupreplsetmongo. encryptedCredentials type: Boolean optional. If mongo. mongoUri contains the encrypted user name and password, set it to true. You must use the credentialstool tool provided by MMS to encrypt the user name and password. The conf-mms.properties file can contain multiple mongo. MongoURI settings. If mongo. encryptedCredentials is true, all mongo. MongoURI usernames and passwords must be encrypted. You must set the MMS backup daemon only when using MMS backup. RootDirectory type: the string backup daemon dynamically creates and maintains the replica set HEAD directory. This directory requires the mongodb-mms user to be able to read and write, and a slash must be added at the end, and the space must be large enough. Note: The MMS backup daemon dynamically creates, maintains, and destroys the data in this directory. This partition should not be used for any other purpose, and cannot overlap with the partition used to back up Blockstore database. Mongodb. release. directory type: The mongod program used by the string backup Daemon must match the version of any replica set being backed up. This mongodb. release. directory should point to the MongoDB version path that contains the backup daemon. The folder in this path should have the following similar names, such as: mongodb-linux-x86_64-2.4.8, mongodb-linux-x86_64-2.6.0. The backup daemon/opt/mongodb/backup-daemon/bin directory has a mongodb-fetch tool. You can download all the latest versions from mongodb.org. When the service is started, mongodb. release. autoDownload automatically runs the tool. If you are concerned about security issues, you can disable automatic download and manually download the required version. Mongodb. release. autoDownload type: Boolean whether to enable automatic download of MongoDB version. Session management settings? Mms. session. maxHours type: Number of hours after which the MMS website session expires. Set the password policy to set the password security policy for the MMS user account. Mms. password. minChangesBeforeReuse type: specifies the number of previous passwords. You cannot use a new password again. Mms. password. maxFailedAttemptsBeforeAccountLock type: the number of attempts by a numeric account to log on to the account. Only the MMS administrator can unlock the user. Mms. password. maxDaysInactiveBeforeAccountLock type: Number of days when the MMS interface is not accessed to lock the user. Mms. password. maxDaysBeforeChangeRequired type: Number of days to change the password. The SNMP heartbeat settings periodically send detection packets to detect the MMS status. Use the standard snmp udp 162 port. Configure MMS to send Trap notifications, from? http://downloads.mongodb.com/on-prem-monitoring/MMS-MONGODB-MIB.txt Download the MIB file and set the following parameters: snmp. default. hosts type: String. default: NULL: Separate the hosts to be checked with commas. You need to set this parameter to enable the SNMP heartbeat function. Otherwise, disable it. Snmp. listen. port type: Numeric value. Default Value: UDP port of listen 11snmp. If the value is lower than 1024, you must run the MMS service as the root user. Snmp. default. heartbeat. interval Type: Numeric. default: 300 heartbeat interval. Set verification code to enable verification code for new user registration. ReCaptcha. public. key type: the string Verification Code public key is associated with your account. ReCaptcha. private. key type: the private key of the string verification code is associated with your account. The LDAP server sets the mms. userSvcClass type: String LDAP service class com. xgen. svc. mms. svc. user. UserSvcLdap. For example, mms. userSvcClass = com. xgen. svc. mms. svc. user. UserSvcLdapLDAP user settings specify the following settings for LDAP directory architecture attributes. Mms. ldap. url type: String specifies the LDAP service URI. For example, mms. ldap. url = ldap: // 174.129.71.167: 3890mms. ldap. bindDn type: String LDAP users are used to search for other users. For example: mms. ldap. url = _ search_mms.ldap.bindPassword type: string SEARCH user credential. For example, mms. ldap. bindPassword = dISDFFFnj7WMmcmms. ldap. user. baseDn type: String basic directory name (DN), used to search users. "=" Must be escaped using a backslash. Example: mms. ldap. user. baseDn = c \ = users, d \ = identitymms. ldap. user. searchAttribute type: string when the MMS user logs on, the LDAP user records the attributes and searches for and verifies the MMS user based on the attributes. For example, mms. ldap. user. searchAttribute = uidmms. ldap. user. firstName type: the string LDAP user attribute contains the user's first name. For example, mms. ldap. user. firstName = givenNamemms. ldap. user. lastName type: String LDAP user attribute contains the Last user Name. For example, mms. ldap. user. lastName = snmms. ldap. user. email type: String LDAP user attribute contains the user's email address. Mms. ldap. user. group type: String list of LDAP user attributes that belong to the group. The global parameter set for the LDAP global role can be in any format of the LDAP group. It can be a common name (CN) or a proprietary name (DN ). The format must match the attributes specified by mms. ldap. user. group. Mms. ldap. global. role. read_only type: the LDAP group attribute of the string assigns global read-only to the MMS user. This role can only view MMS data. For example, mms. ldap. global. role. read_only = AcmeDbasmms. ldap. global. role. monitoring_admin type: the string LDAP group attribute assigns a global monitoring management role to the MMS user. This role allows you to view hosts, charts, and other data, monitor hosts, monitor management settings, and download monitoring agents and other tasks. For example, mms. ldap. global. role. monitoring_admin = AcmeDbasmms. ldap. global. role. backup_admin type: the string LDAP group attribute assigns a global Backup management role to the MMS user .? This role can view the backup status, snapshot list, modify Backup Settings, start/stop/Stop backup, restore requests, View/Edit host passwords and other tasks. For example, mms. ldap. global. role. backup_admin = AcmeDbasmms. ldap. global. role. owner type: the string LDAP group attribute assigns the global master role to the MMS user. This role can execute all MMS management tasks. For example, mms. ldap. global. role. backup_admin = AcmeDbasKerberos is used to enable Kerberos authentication for MMS applications and backend storage. Jvm. java. security. krb5.kdc is required .? IP address/fqdn of the kdc server. This value is set to java. security. krb5.kdc of JVM. For example, jvm. java. security. krb5.kdc = kdc. example. comjvm. java. security. krb5.realm is required. The default value is REALM. For EXAMPLE, jvm. java. security. krb5.realm = EXAMPLE. COMmms. kerberos. principal is required. Primary user MongoDB verification. For example, mms. kerberos. principal = mms/mmsweb.example.com@EXAMPLE.COMmms.kerberos.keyTab is required. Specifies the absolute path of the keytab file. For example, mms. kerberos. keyTab =/path/to/mms. keytabmms. kerberos. debug is optional. Detailed information about the Kerberos authentication process. Encrypt the MongoDB user creden。 if you do not want to save the MongoDB user password information in plain text, you can use the tools provided by MMS to encrypt it. Step 1: generate a password pair
# /opt/mongodb/mms/bin/credentialstool --username ttlsa --passwordEnter Password: Generating credentials pair...Your encrypted credentials pair isUsername: fce001fa4cb3cecac8e43265431a05c0-6442a57e242bad69Password: fce001fa4cb3cecac8e43265431a05c0-6fdc734ebab5dbe572cef6f2d44a6a4bPlease copy these credentials into the MongoURI connection strings ofyour [install-dir]/conf/conf-mms.properties where needed. Additionally,for each MongoURI connection string using encrypted credentials, pleaseadd the following configuration option which will indicate to MMS thatthe credentials are set as encrypted tokens:mongo.encryptedCredentials=trueE.g.,mongo.mongoUri=mongodb://fce001fa4cb3cecac8e43265431a05c0-6442a57e242bad69:fce001fa4cb3cecac8e43265431a05c0-6fdc734ebab5dbe572cef6f2d44a6a4b@127.0.0.1:27017/mongo.encryptedCredentials=true...mongo.backupdb.mongoUri=mongodb://fce001fa4cb3cecac8e43265431a05c0-6442a57e242bad69:fce001fa4cb3cecac8e43265431a05c0-6fdc734ebab5dbe572cef6f2d44a6a4b@127.0.0.1:27017/mongo.backupdb.encryptedCredentials=true...
2. Modify the following two parameters:
mongo.mongoUri=mongodb://fce001fa4cb3cecac8e43265431a05c0-6442a57e242bad69:fce001fa4cb3cecac8e43265431a05c0-6fdc734ebab5dbe572cef6f2d44a6a4b@127.0.0.1:27017/mongo.encryptedCredentials=true
MongoDB users must have the following permissions: readWriteAnyDatabase, clusterAdmin, and dbAdminAnyDatabase.

Original article address: MMS configuration option description (7). Thank you for sharing it with me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.