设为首页 收藏本站
查看: 575|回复: 0

[经验分享] Mysql Monitor Agent setup

[复制链接]

尚未签到

发表于 2016-9-11 10:53:13 | 显示全部楼层 |阅读模式
2.4.4. Installing the Monitor Agent on Unix
  As a prerequisite for installing the MySQL Enterprise Monitor Agent on Linuxsystems you must have the Linux Standards Base (LSB)initialization functions installed.
  To install the agent navigate to the directory that contains thefile,mysqlmonitoragent-version

-installer.bin(where version
indicates thethree-part version number, the OS, and the architecture). Ensurethat 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 tobe logged in as root
. Installing as anunprivileged user installs to the/home/user_name

/mysql/enterprise/agentdirectory.

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


  What follows describes installation from the command line. Youmay install the Monitor Agent graphically by running theinstaller from within a windows manager. In both cases the stepsare identical. You may also install the Monitor Agent inunattendedmode. This is especially useful ifyou are doing multiple installations. For more information onthis 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 valuesare indicated by square brackets; to select them pressEnter
. Otherwise enter a value of yourchoosing.


  •   First, you must select the Language you want to use duringthe installation process:

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

    ----------------------------------------------------------------------------
    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]:
  •   Specify the MySQL server that you want to monitor. First,you must specify whether you want to use a TCP/IP orsocket-based connection to communicate with the MySQLServer:

    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 theTCP/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 thepath 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.iniconfiguration 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-addressoption, not 127.0.0.1.

  •   Specify the user credentials for the MySQL server that youwant to monitor:

    MySQL Username []: service_agent


    MySQL Password :
    Re-enter :
  •   Select whether you want to enable Query Analyzer. If youdisable the Query Analyzer during installation, you willneed to manually edit the configuration file to re-enablethe Query Analyzer functionality. If you enable QueryAnalysis (Proxy), you must specify the port on which theagent 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 youdisabled it during installation, seeChapter 9, The Query Analyzer Page
    .

  •   Enter the details of the MySQL Enterprise Service Manager that you want touse with this agent. The configuration information requiredis available within the installation report generated whenyou 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 forcommunication. If you want to enable SSL communicationbetween the agent and the MySQL Enterprise Service Manager, you must replyY
    to the following question.

    Use SSL? [y/N]:
    Agent Username [agent]:  
    Agent Password :
    Re-enter :
    ----------------------------------------------------------------------------
  •   Before installation starts, you will be provided with asummary of the installation settings that you havespecified:

    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
  •   The installer will copy the necessary files and create theconfiguration 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.
  •   Finally, you can read the suppliedREADMEfile when prompted. The file isprovided within theshare/doc/README_en.txtfile within theagent installation directory if you would like to read thisfile separately.



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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-270716-1-1.html 上篇帖子: mysql explain用法 下篇帖子: MySql安装和Error1067
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表