`
bzhang
  • 浏览: 255051 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

Mysql Monitor Agent setup

阅读更多

2.4.4. Installing the Monitor Agent on Unix

As a prerequisite for installing the MySQL Enterprise Monitor Agent on Linux systems you must have the Linux Standards Base (LSB) initialization functions installed.

To install the agent navigate to the directory that contains the file, mysqlmonitoragent-version -installer.bin (where version indicates the three-part version number, the OS, and the architecture). Ensure that this file is executable by typing:

shell> chmod +x mysqlmonitoragent-version

-installer.bin


To install to the default directory (/opt/mysql/enterprise/agent ) you need to be logged in as root . Installing as an unprivileged user installs to the /home/user_name /mysql/enterprise/agent directory.

Note

If you install the agent as an unprivileged user, it will not automatically start up on rebooting.

What follows describes installation from the command line. You may install the Monitor Agent graphically by running the installer from within a windows manager. In both cases the steps are identical. You may also install the Monitor Agent in unattended mode. This is especially useful if you are doing multiple installations. For more information on this topic see Section 2.7, “Unattended Installation” .

Begin installation from the command line by typing:

shell> ./mysqlmonitoragent-version

-installer.bin --mode text


The various options are shown in what follows. Default values are indicated by square brackets; to select them press Enter . Otherwise enter a value of your choosing.

  1. First, you must select the Language you want to use during the installation process:

    Language Selection
    
    Please select the installation language
    [1] English
    [2] Japanese
    Please choose an option [1] : 
    
  2. Next, specify the directory where you want the agent installed:

    ----------------------------------------------------------------------------
    Welcome to the MySQL Enterprise Monitor Agent Setup Wizard.
    
    ----------------------------------------------------------------------------
    Please specify the directory where MySQL Enterprise Monitor Agent will be installed
    
    Installation directory [/opt/mysql/enterprise/agent]:   
    
  3. Specify the MySQL server that you want to monitor. First, you must specify whether you want to use a TCP/IP or socket-based connection to communicate with the MySQL Server:

    How will the agent connect to the database it is monitoring?
    
    
    [1] TCP/IP
    [2] Socket
    Please choose an option [1] :

    If you select TCP/IP, then you will be asked to enter the TCP/IP address and port number:

    ----------------------------------------------------------------------------
    Monitored Database Information
    
    IMPORTANT: The agent user account specified below requires special MySQL privileges.
    
    Visit the following URL for more information:
    https://enterprise.mysql.com/docs/monitor/2.0/en/mem-install.html#mem-agent-rights
    
    MySQL hostname or IP address [127.0.0.1]: 
    
    
    
    Validate MySQL hostname or IP address [Y/n]: 
    
    
    MySQL Port [3306]: 
    
    

    If you select Socket, then you will be asked to provide the path name to the MySQL socket. Typical values are /tmp/mysql.sock , /var/lib/mysql.sock , or /var/run/mysql.sock .

    ----------------------------------------------------------------------------
    Monitored Database Information
    
    IMPORTANT: The agent user account specified below requires special MySQL privileges.
    
    Visit the following URL for more information:
    https://enterprise.mysql.com/docs/monitor/2.0/en/mem-install.html#mem-agent-rights
    
    MySQL Socket []: 
    

    Note

    The service agent always associates “localhost ” with the TCP/IP address 127.0.0.1, not the MySQL socket. This is in contrast to the MySQL Command Line Tool, which connects via the MySQL socket by default on Unix, if the hostname “localhost ” is specified.

    If the MySQL server you wish to monitor has been started with the --skip-networking command option then you will not be able to connect to it via TCP/IP, as the server will not listen for TCP/IP connections. In this case the service agent will need to be configured to use the MySQL socket. This can be done during installation by selecting “socket ” rather than “TCP/IP ” and then specifying the MySQL socket name. This can also be configured after installation by editing the agent-instance.ini configuration file, for further information on this refer to Section 2.6.2, “MySQL Server (agent-instance.ini ) Configuration” .

    If the MySQL server to be monitored has been started using the command option --bind-address then the server will only listen for connections on the IP address specified, that is, the IP address of the MySQL server. If the service agent has been started using TCP/IP networking and the default address of 127.0.0.1 it will not be able to connect to the server to be monitored. Also, if “localhost ” is specified as the host name during agent configuration, a connection will not be established, as the server will be listening for connections on the address specified with the --bind-address option, not 127.0.0.1.

  4. Specify the user credentials for the MySQL server that you want to monitor:

    MySQL Username []: service_agent
    
     
    
    MySQL Password :
    
    Re-enter :
    
  5. Select whether you want to enable Query Analyzer. If you disable the Query Analyzer during installation, you will need to manually edit the configuration file to re-enable the Query Analyzer functionality. If you enable Query Analysis (Proxy), you must specify the port on which the agent will listen for queries.

    ----------------------------------------------------------------------------
    Query Analyzer Configuration
    
    MySQL Proxy enables query monitoring and analysis by listening on a specified port for client connections that are then passed through to a backend MySQL database server. It is not needed for basic monitoring functionality.
    
    Click here for more information.
     [Y/n]: 
    
    Enable Proxy (recommended) [Y/n]: 
    
    
    Proxy Port [4040]: 
    
    Backend Host: 127.0.0.1   (cannot be changed)
    
    Backend Port: 3306   (cannot be changed)
    

    For more information on enabling Query Analyzer if you disabled it during installation, see Chapter 9, The Query Analyzer Page .

  6. Enter the details of the MySQL Enterprise Service Manager that you want to use with this agent. The configuration information required is available within the installation report generated when you installed MySQL Enterprise Service Manager

        
    ----------------------------------------------------------------------------
    
    MySQL Enterprise Monitor Options
    
    
    Hostname or IP address []: 192.168.0.197
    
     
    
    Tomcat Server Port [18080]: 
    
    Tomcat SSL Port [18443]:
    

    The agent and MySQL Enterprise Service Manager support using SSL for communication. If you want to enable SSL communication between the agent and the MySQL Enterprise Service Manager, you must reply Y to the following question.

    Use SSL? [y/N]: 
    
    Agent Username [agent]:  
    
    Agent Password :
    
    Re-enter : 
    
    ----------------------------------------------------------------------------
        
  7. Before installation starts, you will be provided with a summary of the installation settings that you have specified:

    Here are the settings you specified: 
    
    Installation directory: /opt/mysql/enterprise/agent 
    
    Monitored MySQL Database:  
    -------------------------
    Hostname or IP address: 127.0.0.1
    Port: 3306
    MySQL username: mysql_user
    
    
    MySQL password: password
    
    
    
    Query Analyzer Configuration
    -------------------------
    Proxy Enabled: yes
    Proxy Port: 4040
    
    MySQL Enterprise Manager: 
    ------------------------------
    
    Hostname or IP address: 192.168.0.197
    
    
    
    Tomcat Server Port: 18080
    Tomcat SSL Port: 18443
    Use SSL: 0
    Agent username: agent
    
    
    
    Press [Enter] to continue : 
    
    
    ----------------------------------------------------------------------------
      
    Setup is now ready to begin installing MySQL Enterprise Monitor Agent on your computer.
    
    Do you want to continue? [Y/n]: y
        
  8. The installer will copy the necessary files and create the configuration file required to run the agent:

    ----------------------------------------------------------------------------
    Please wait while Setup installs MySQL Enterprise Monitor Agent on your computer.
    
     Installing
     0% ______________ 50% ______________ 100%
     #########################################
    
    ----------------------------------------------------------------------------
    Info to start MySQL Agent
    
    The MySQL agent was successfully installed. To start the MySQL Agent please 
    invoke:
    /opt/mysql/enterprise/agent/etc/init.d/mysql-monitor-agent start
    Press [Enter] to continue : 
    
    ----------------------------------------------------------------------------
    Setup has finished installing MySQL Enterprise Monitor Agent on your computer.
    
  9. Finally, you can read the supplied README file when prompted. The file is provided within the share/doc/README_en.txt file within the agent installation directory if you would like to read this file separately.

For information on starting the agent, see Section 2.5.3, “Starting/Stopping the Agent on Unix” .

分享到:
评论

相关推荐

    Python-MysqlMonitor一款监控mysql执行语句的工具

    2. **下载与安装**:从官方或GitHub仓库获取MysqlMonitor源代码(如压缩包中的MysqlMonitor-master),通过Python的`setup.py`脚本进行安装。 3. **配置连接**:配置Python-MysqlMonitor以连接到目标MySQL服务器,...

    MySQL Monitor(MySQL监视器) 1.0.zip

    MySQL Monitor(MySQL监视器)用来帮助我们分析MySQL运行状态,通过对状态分析给出一定的合理建议。对于关键的MySQL状态进行了整理和总结,对于掌握MySQL的运行状况有一定的辅助作用。除此以外你也可以尝试自己写MySQL...

    mysql_monitor.zip_MySQL monitor_mysql_monitor

    MySQL Monitor(MySQL监视器)用来帮助我们分析MySQL运行状态,通过对状态分析给出一定的合理建议。对于关键的MySQL状态进行了整理和总结,对于掌握MySQL的运行状况有一定的辅助作用。除此以外你也可以尝试自己写MySQL...

    mysql+innosetup

    使用innosetup打包mysql,制作安装文件!共享所有代码!

    mysql performance monitor mpm下载

    MPM的下载通常包括多个组件,比如在提供的文件名列表中,我们看到了`mysql_performance_monitor_templates-0.9.1.tar.gz`和`mysql_performance_monitor_agent-0.9.1.tar.gz`,这些都是MPM的重要组成部分。...

    MonitorAgent

    "MonitorAgent"是一个用于系统监控和管理的工具,它的核心功能是实现定时轮询,能够定期检查服务器的状态,收集各种性能指标,以便于开发者或运维人员了解系统的运行情况。通过这个工具,你可以轻松地开发出自己的...

    mysql-monitor

    **MySQL Enterprise Monitor** 是一款由 MySQL 官方提供的用于监控 MySQL 数据库性能的工具。它能够帮助用户深入了解数据库的运行状态,及时发现并解决性能瓶颈问题。 #### 1.1 架构概述 MySQL Enterprise Monitor...

    MONyog MySQL Monitor and Advisor GA (Stable) 4.7.0-4 Full

    这是最新MONyog MySQL Monitor and Advisor GA (Stable) 4.7.0-4 Full,带序列号,本人亲测可用。保证你在外头找不到第二个的。 MONyog是一款SQL监视和建议工具。帮助MySQL的dbas管理更多MySQL服务器,调整其目前的...

    MONyog MySQL Monitor and Advisor Beta 4.8.0-1 Full

    这是最新MONyog MySQL Monitor and Advisor Beta 4.8.0-1 Full,带序列号,本人亲测可用。保证你在外头找不到第二个的。 最近忙着办户口和结婚登记的事儿,没有跟上官方更新的步伐。话说,这些小版本的区别并不是很...

    MONyog MySQL Monitor and Advisor GA (Stable) 4.7.2-0 Full

    这是最新MONyog MySQL Monitor and Advisor GA (Stable) 4.7.2-0 Full,带序列号,本人亲测可用。保证你在外头找不到第二个的。 最近忙着办户口和结婚登记的事儿,没有跟上官方更新的步伐。话说,这些小版本的区别...

    MySQL-Front_Setup

    在"MySQL-Front_Setup"中,我们将探讨MySQL-Front的安装过程、主要功能以及如何利用这些功能来提升MySQL的工作效率。 1. **安装过程**: - 首先,你需要下载适合你操作系统(如Windows)的MySQL-Front安装包,通常...

    MySQLMonitor:MySQL实时监控工具(代码审计黑盒白盒审计辅助工具)

    MySQLMonitor是404团队中的一环,如果对MySQLMonitor有任何疑问又或是想要找小伙伴交流,可以参考星链计划的加群方式。 MySQL监视器 MySQL实时监控工具(黑盒测试辅助工具) 更新: 2020-10-18:使用Java重构,...

    mysql-5.0.67-win32 Setup.exe

    mysql数据库,更好的设计你的系统,mysql-5.0.67-win32 Setup.exe

    PHP实例开发源码—MySQLMonitor MySQL运行状态分析工具.zip

    3. **MySQL状态监控**:MySQLMonitor的核心功能是对MySQL服务器的状态进行监控,这涉及到数据库的性能指标,如查询速度、内存使用、连接数、索引效率等。通过这些指标,开发者可以及时发现并解决性能瓶颈。 4. **...

    MONyog 4.5.1-0 MySQL Monitor and Advisor Full Ultimate 正式版 带序列号

    帮助MySQL的dbas管理更多MySQL服务器,调整其目前的MySQL服务器,在有严重的问题或中断之前找到并解决他们的MySQL数据库应用的问题。这个软件将积极主动地监控数据库环境,并会就如何用户可以优化性能,加强安全或...

    MONyog 4.6.2-0 MySQL Monitor and Advisor Full Ultimate 正式版 带序列号

    帮助MySQL的dbas管理更多MySQL服务器,调整其目前的MySQL服务器,在有严重的问题或中断之前找到并解决他们的MySQL数据库应用的问题。这个软件将积极主动地监控数据库环境,并会就如何用户可以优化性能,加强安全或...

    MySQL Monitor(MySQL监视器) v1.0

    MySQL Monitor(MySQL监视器)用来帮助我们分析MySQL运行状态,通过对状态分析给出一定的合理建议。对于关键的MySQL状态进行了整理和总结,对于掌握MySQL的运行状况有一定的辅助作用。除此以外你也可以尝试自己写MySQL...

    mysql.Setup.zip

    "mysql.Setup.zip" 提供的是一个简化版的MySQL安装包,旨在提供无脑式的安装体验,适合初学者和小型项目使用。 在描述中提到,该压缩包解压后包含一个名为"mysql.Setup.exe"的可执行文件,这是MySQL的安装程序。...

    MONyog 4.7.0-0 Beta1 MySQL Monitor and Advisor Full Ultimate 带序列号

    帮助MySQL的dbas管理更多MySQL服务器,调整其目前的MySQL服务器,在有严重的问题或中断之前找到并解决他们的MySQL数据库应用的问题。这个软件将积极主动地监控数据库环境,并会就如何用户可以优化性能,加强安全或...

    archive_ MySQL Monitor(MySQL监视器) v1.0 [江西新余电信].zip.zip

    MySQL Monitor是一款专用于监视MySQL数据库性能的工具,其v1.0版本可能包含了对数据库运行状态的实时监控、性能指标的统计分析以及故障排查等功能。从"江西新余电信"的标识来看,这个版本可能针对特定网络环境进行了...

Global site tag (gtag.js) - Google Analytics