10bet网址
MySQL Enterprise Monitor 8.0 Manual
Related Documentation Download this Manual

5.4 Monitoring Agent Graphical Installation Wizard

本节描述如何安装代理ing the Installation Wizard. The steps are identical in the command line installation method.

Note

To install to the default directory (/opt/mysql/enterprise/agent), log in asrootfirst. Installing as an unprivileged user installs to the/home/user_name/mysql/enterprise/agent目录中。

To automatically start the agent upon rebooting, you must install while logged in as root. If you install as an unprivileged user, you must start the agent yourself after each reboot.

Note

Although MySQL Enterprise Monitor Agent is installed as the root user, directories and files that the Agent writes to are owned by themysqluser in themysqlgroup, which includeslogs/,spool/, andetc/agentManaged. The Agent is started by, and runs as, themysqluser. If you attempt to install to a directory on which themysqluser cannot act, an error is displayed explaining how to correct the situation.

You can also install the Monitor Agent inunattendedmode. For more information on unattended installation, seeSection 8.1, “Unattended Installation”.

Note

To install multiple agents on the same machine, use theagentservicenameoption with the installer to set a unique service name each time. For more information, seeinstaller_agentservicename.

Note

There is no 64-bit agent installation for Microsoft Windows platform.

To install the Agent, do the following:

  1. Run the installer as required by your operating system.

  2. TheLanguage Selectiondialog is displayed. Select your language, and clickOK.

    The Installation directory dialog is displayed.

  3. Either change the installation directory, or accept the default value, and choose the connection type for the agent.

    • Installation directory: enables you to change the installation path.

    • TCP/IP:年代elect if the agent uses TCP/IP to connect to the monitored database. This option is not available on Microsoft Windows platforms. TCP/IP is used by default.

    • Socket:年代elect if the agent uses socket to connect to the monitored database. This is only possible if the agent is monitoring a local database. This option is not available on Microsoft Windows platforms.

      If you choose Socket, you must enter the path to the socket later in the installation process.

    ClickForward. TheMonitoring Optionsdialog is displayed. The installation starts and the files are copied to the installation directory.

  4. You can choose whether to monitor the host on which the agent is installed, or the host and a MySQL instance. If you select host only, you have to configure the connection to the MySQL Enterprise Service Manager, but no other configuration is required. If you select host and database, you must also configure the database connection parameters.

    ClickForward.If you are installing on Apple OS X, theInstall as a servicedialog is displayed. This dialog enables you to install the agent as a service, which restarts each time the host is restarted. This option requires an Administrator's password.

    On all other platforms, theMySQL Enterprise Monitor Optionsdialog is displayed.

  5. TheMySQL Enterprise Monitor Optionsdialog is displayed. Complete the following:

    • Hostname or IP address: the hostname or IP address of the server where MySQL Enterprise Service Manager is installed.

    • Tomcat SSL Port: the SSL port the MySQL Enterprise Service Manager is listening on.

    • Agent Username: the agent username. This is the username all agents must use to connect to the MySQL Enterprise Service Manager.

    • Agent Password: the agent's password. This is the password all agents must use to connect to the MySQL Enterprise Service Manager.

    • Re-enter: re-enter the agent's password.

    ClickForward. TheMonitored Database Configuration Optionsdialog is displayed.

  6. TheMonitored Database Configuration Optionsenables you to choose the remaining steps of the installation. The following options are available:

    • Validate hostname, port, and Admin account privileges:年代elect this option to attempt a test connection to the database with the supplied credentials, defined in theMonitored Database Informationdialog. If you do not select this option, the installer does not attempt a test connection to the database with the supplied credentials.

      Note

      It is recommended to validate the connection.

    • Configure encryption settings for user accounts:年代elect this to configure theEncryption Settingsdialog. If selected, this dialog is displayed after theMonitored Database Informationdialog. TheEncryption Settingsdialog enables you to define the SSL options for connections to SSL-enabled MySQL Instances.

      Important

      Ensure the MySQL instance is SSL-enabled.

    • Configure less-privileged user accounts:年代elect if you intend to define the less-privileged user accounts,GeneralandLimited.

    Make your selection and clickForward.

    TheMonitored Database Informationdialog is displayed.

  7. TheMonitored Database Informationdialog enables you to define the connection parameters for the MySQL instance the agent monitors.

    • MySQL hostname or IP address: the IP address or hostname of the server on which the MySQL instance is running.

    • MySQL Port: the port the MySQL instance is listening on.

    • Admin User: the admin user the agent uses. This can be therootuser, or another user with theSUPERprivilege.

    • Admin Password: the password of the admin user.

    • Re-enter Password: re-enter the admin user's password.

    • Monitor Group: the group to which you want the instance to be added in MySQL Enterprise Service Manager. If the group does not exist, it is created, and the monitored instance added to it.

    ClickForward. If you selectedValidate hostname, port, and Admin account privilegeson theMonitored Database Configuration Optionsdialog, the supplied credentials are verified against the MySQL instance.

    If you selectedConfigure encryption settings for user accountson theMonitored Database Configuration Optionsdialog, theEncryption Settingsdialog is displayed.

  8. TheEncryption Settingsdialog enables you to define the SSL connection parameters for your connection to the SSL-enabled MySQL Instance.

    • Require Encryption: enforces encrypted connections between the agent and the MySQL instance.

    • Allow Self-Signed Certificates:年代pecifies whether self-signed certificates are permitted.

    • CA Certificate: the path to the CA certificate.

  9. If you selectedConfigure less-privileged user accountson theMonitored Database Configuration Options,Less Privileged User Account Creationdialog is displayed.

    • Auto-create Less Privileged Users:年代elect to automatically create the users, using the credentials supplied. If you do not create these users, all agent queries are run as the Admin user.

    • General Username: username of the General user.

    • General Password: password of the General user.

    • Limited Username: username of the Limited user.

    • Limited Password: password of the Limited user.

    ClickForwardto create the Agent account and complete the installation.