关闭

安装MySQL Enterprise Monitor

标签: DatabasedbaSQLmysql
4921人阅读 评论(0) 收藏 举报
分类:

    MySQL Enterprise Monitor是专门为MySQL数据库而设计的一款企业级监控,能非常好地与MySQL各方面特性相结合,包括:MySQL的关键性能指标、主机、磁盘、备份、新特性相关以及各种场景下的架构配置,并支持从单节点到海量节点部署的环境。它不仅能够全面地监控MySQL的运行状态,还能及时发现潜在的问题并给出优化建议。本文描述了MySQL Enterprise Monitor的安装过程。

 

1、安装需求

General Platform Recommendations

The following are recommended:

• Ensure that your Service Manager and Agent hosts are synchronized to the same time server. It is important that all times are properly synchronized.

• Ensure that your Service Manager and Agent hosts use different SSH host keys before installing.

MySQL Requirements

This section describes the MYSQL Server requirements for MySQL Enterprise Monitor installation.

• The Enterprise Server Manager repository requires MySQL Server 5.6.14 or higher.

• The Monitoring Agent can monitor any version of MySQL Server from version 5.0 onwards.

 

Ensure the following:

• The MySQL Server version is 5.6.14 or higher.

• The InnoDB storage engine is available.

• SSL is enabled.

You must ensure the following in the MySQL Server configuration:

• Query Cache must not be enabled.

• Set innodb_file_per_table=1.

• Set innodb_file_format=Barracuda.

• On Linux/Unix hosts, ensure innodb_flush_method=O_Direct, except on Solaris if ZFS is used.

If using ZFS, comment out this parameter.

• It is recommended to set innodb_log_file_size=2048M.

 

2、MySQL Enterprise Monitor架构图及安装步骤

a、建立一个作为Repository独立的MySQL数据库,也可以用EM自带的
b、安装EM
c、在每个要监视的MySQL server上按住EM agent

 

3、安装MySQL Enterprise Monitor

[root@SZDB tools]# ls -hltr
total 999M
-rwxrwxr-x 1 robin mysql 252M Sep 30 02:32 mysqlmonitor-3.0.15.3058-linux-x86_64-update-installer.bin
-rwxrwxr-x 1 robin mysql 252M Sep 30 02:32 mysqlmonitor-3.0.15.3058-linux-x86_64-installer.bin
-rw-r--r-- 1 robin mysql  13K Sep 30 05:09 README_en.txt
-rw-rwxr-- 1 robin mysql  13K Sep 30 05:09 READ_ME_ja.txt
-rw-r--r-- 1 robin mysql 495M Nov 11 08:11 MySQLmem3015.zip
[root@SZDB tools]# chmod u+x mysqlmonitor-3.0.15.3058-linux-x86_64-*.bin
[root@SZDB tools]# ./mysqlmonitor-3.0.15.3058-linux-x86_64-installer.bin
Language Selection

Please select the installation language       #选择安装语言
[1] English - English
[2] Japanese - 日本語
Please choose an option [1] : 1
Info: During the installation process you will be asked to enter usernames and
passwords for various pieces of the Enterprise Monitor. Please be sure to make
note of these in a secure location so you can recover them in case they are
forgotten.
Press [Enter] to continue :
----------------------------------------------------------------------------
Welcome to the setup wizard for the MySQL Enterprise Monitor

----------------------------------------------------------------------------
Please specify the directory where the MySQL Enterprise Monitor will be
installed              #选择安装路径 

Installation directory [/opt/mysql/enterprise/monitor]: /dbdata/mysql/enterprise/monitor

----------------------------------------------------------------------------
Tomcat Server Options

Please specify the following parameters for the bundled Tomcat Server

Tomcat Server Port [18080]:               #Author: Leshami

Tomcat SSL Port [18443]:                  #Blog  : http://blod.csdn.net/leshami

----------------------------------------------------------------------------
Service Manager User Account

You are installing as root, but it's not good practice for the Service Manager
to run under the root user account.  Please specify the name of a user account
to use for the Service Manager below.  Note that this user account will be
created for you if it doesn't already exist.

User Account [mysqlmem]:

----------------------------------------------------------------------------
Database Installation   #选择已存在的MySQL数据用于Repository还是新建一个

Please select which database configuration you wish to use

[1] I wish to use the bundled MySQL database
[2] I wish to use an existing MySQL database *
Please choose an option [1] :

* We will validate the version of your existing MySQL database server during the
installation. See documentation for minimum version requirements.

Important: MySQL Enterprise Monitor 2.3 and 3.0 cannot share a Repository. If
you're not using the bundled Repository and will be running both versions in
your environment, you must set up and maintain separate repositories for them.

Visit the following URL for more information:

http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-install-server.html

----------------------------------------------------------------------------
Repository Configuration

Please specify the following parameters for the bundled MySQL server

Repository Username [service_manager]: #Repository用户名及密码

Password :
Re-enter :
MySQL Database Port [13306]:

Use SSL when connecting to the database [y/N]: y

----------------------------------------------------------------------------
Setup is now ready to install MySQL Enterprise Monitor on your computer.

Do you want to continue? [Y/n]: y

----------------------------------------------------------------------------
Please wait while Setup installs MySQL Enterprise Monitor on your computer.

 Installing       #开始安装mysql enterprise monitor                        
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Completed installing files

Setup has completed installing the MySQL Enterprise Monitor files on your
computer

Uninstalling the MySQL Enterprise Monitor files can be done by invoking:
/dbdata/mysql/enterprise/monitor/uninstall

To complete the installation, launch the MySQL Enterprise Monitor UI and
complete the initial setup. Refer to the readme file for additional information
and a list of known issues.

Press [Enter] to continue :
----------------------------------------------------------------------------
Completed installing files

WARNING: To improve security, all communication with the Service Manager uses
SSL. Because only a basic self-signed security certificate is included when the
Service Manager is installed, it is likely that your browser will display a
warning about an untrusted connection. Please either install your own
certificate or add a security exception for the Service Manager URL to your
browser. See the documentation for more information.

http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-install-server.html
Press [Enter] to continue :

----------------------------------------------------------------------------
Setup has finished installing MySQL Enterprise Monitor on your computer.

View Readme File [Y/n]: n

Info: To configure the MySQL Enterprise Monitor please visit the following page:
https://localhost:18443
Press [Enter] to continue :
You have new mail in /var/spool/mail/root
[root@SZDB tools]#

 

4、安装客户端
[robin@TESTDB ~]$ rpm -qa | grep -i lsb  #确认已安装下列redhat-lsb包
redhat-lsb-4.0-2.1.4.el5
[root@TESTDB opt]# /home/robin/mysqlmonitoragent-3.0.15.3058-linux-x86-64bit-installer.bin
Language Selection

Please select the installation language
[1] English - English
[2] Japanese - 日本語
Please choose an option [1] : 1
----------------------------------------------------------------------------
Welcome to the MySQL Enterprise Monitor Agent Setup Wizard.
----------------------------------------------------------------------------
Installation directory

Please specify the directory where MySQL Enterprise Monitor Agent will be
installed

Installation directory [/opt/mysql/enterprise/agent]:  #选择安装路径

How will the agent connect to the database it is monitoring? #选择连接协议

[1] TCP/IP
[2] Socket
Please choose an option [1] : 
----------------------------------------------------------------------------
Monitoring Options

You can configure the Agent to monitor this host (file systems, CPU, RAM, etc.)
and then use the Monitor UI to furnish connection parameters for all current and
future running MySQL Instances. This can be automated or done manually for each
MySQL Instance discovered by the Agent. (Note: scanning for running MySQL
processes is not available on Windows, but you can manually add new connections
and parameters from the Monitor UI as well.)

Visit the following URL for more information:
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-feeding.html

Monitoring options:

[1] Host only: Configure the Agent to monitor this host and then use the Monitor UI to furnish connection parameters for current and future running MySQL Instances.
[2] Host and database: Configure the Agent to monitor this host and furnish connection parameters for a specific MySQL Instance now. This process may be scripted. Once installed, this Agent will also continuously look for new MySQL Instances to monitor as described above.
Please choose an option [2] :   #这里选择同时监控主机和数据库

----------------------------------------------------------------------------
Setup is now ready to begin installing MySQL Enterprise Monitor Agent on your
computer.

Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs MySQL Enterprise Monitor Agent on your
computer.

 Installing    #安装agent
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
MySQL Enterprise Monitor Options

Hostname or IP address []: 172.16.10.198  #Enterprise Monitor DB 的IP
Tomcat SSL Port [18443]:
The following are the username and password that the Agent will use to connect
to the Monitor.  They were defined when you installed the Monitor.  They can be
modified under Settings, Manage Users.  Their role is defined as "agent".

Agent Username [agent]:   #输入安装Enterprise Monitor是定义的用户名及密码
Agent Password :
Re-enter :
----------------------------------------------------------------------------
Monitored Database Information

IMPORTANT: The Admin user account specified below requires special MySQL
privileges.

Visit the following URL for more information:
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-agent-rights.html

MySQL hostname or IP address [localhost]:   #被监控数据库的IP及端口设置

Validate MySQL hostname or IP address [Y/n]: y

MySQL Port [3306]:

Admin User []: root

Admin Password :
Re-enter Password :
Monitor Group []: Prod

----------------------------------------------------------------------------
Agent User Account Creation

IMPORTANT: Less privileged accounts can be used to enhance monitoring security,
and can even be created for you if the Admin account has GRANT privileges.

Visit the following URL for more information:
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-agent-rights.html

Auto-Create Less Privileged Users [Y/n]: y

General Username []: general       #以下部分创建用户捕获数据库等相关的监控信息

General Password :
Re-enter Password :
Limited Username []: limited

Limited Password :
Re-enter Password :
----------------------------------------------------------------------------
Configuration Report

MySQL Enterprise Monitor Agent (Version 3.0.15.3058 : 3.0.15.3058)

The settings you specified are listed below.

Note that if you are using a Connector to collect Query Analyzer data,
you will need some of these settings to configure the Connector. See
the following for more information:
http://dev.mysql.com/doc/mysql-monitor/3.0/en/mem-qanal-using-feeding.html

Installation directory: /opt/mysql/enterprise/agent

MySQL Enterprise Monitor UI:
-------------------------
Hostname or IP address: 172.16.10.198
Tomcat Server Port: 18443
Use SSL: yes

Monitored MySQL Database:
-------------------------
Hostname or IP address: localhost
Port: 3306
Press [Enter] to continue :

Press [Enter] to continue :
----------------------------------------------------------------------------
Start MySQL Enterprise Monitor Agent

Info to start the MySQL Enterprise Monitor Agent

The MySQL Enterprise Monitor Agent was successfully installed. To start the
Agent please invoke:
/etc/init.d/mysql-monitor-agent start
Press [Enter] to continue :
----------------------------------------------------------------------------
Setup has finished installing MySQL Enterprise Monitor Agent on your computer.

View Agent Readme File [Y/n]: n

#以下部分启动agent,至此安装完毕,可以登陆到GUI界面进行监控
[root@TESTDB opt]# /etc/init.d/mysql-monitor-agent start
Starting MySQL Enterprise Agent service...[  OK  ]

1
1
查看评论

mysql_enterprise_monitor

  • 2014-08-19 20:06
  • 3.84MB
  • 下载

Mysql 监控(MySQL Monitoring )

第1阶段 1.   注册庞数据 点击打开链接注册 注册之后会生成: 用户ID                   用户密钥 [windows] 其次,点击下载文件 ...
  • pangdata
  • pangdata
  • 2017-04-21 11:18
  • 317

mysql InnoDB Monitors 4种监控

监控monitors The standard InnoDB Monitor 标准监控 The InnoDB Lock Monitor 锁监控,用于排查事务间锁问题 The InnoDB Tablespace Monitor 表空间监控 The InnoDB Table Monitor 表监控 触...
  • huyangyamin
  • huyangyamin
  • 2015-07-14 15:31
  • 1212

Navicat for MySQL V11.0.17企业版(中文版,带有破解补丁,64bit,32bit)

  • 2015-01-12 10:48
  • 26.50MB
  • 下载

MySQL Enterprise Monitor安装

体系架构 ---------------------------------------------------- Monitired MySQL Server Agent --> Monitor 安装步骤 ----------------------------------------...
  • tuzhen007
  • tuzhen007
  • 2013-12-02 13:47
  • 510

安装MySQL Enterprise Edition

一. 下载程序 1. 首先去mysql网站下载页面(http://www.mysql.com/downloads/); 点击Download from Oracle eDelivery; 2. 点击登入或者注册; 3. 有ORACLE账号的直接登入即可,没有账号的可以注册一个...
  • wolaiyetongxue
  • wolaiyetongxue
  • 2015-07-14 15:12
  • 1324

Unix/Linux环境C编程入门教程(24) MySQL 5.7.4 for Red Hat Enterprise 7(RHEL7)的安装

如今MySQL的一个变化用户可能不会注意到,那就是甲骨文已经开始重新架构MySQL的代码,使它大量的模块化。如软件解析器,优化和复制功能以模块化的形式被重写。该版本的查询性能得以大幅提升,比 MySQL 5.6 提升 1 倍。本文就是在最新发布的RHEL7上面 CentOS7上面安装MySQL 5....
  • yincheng01
  • yincheng01
  • 2014-07-13 11:30
  • 2793

Red Hat Enterprise Linux 5 64位安装Mysql5.6.24(DB5.6.24.rpm for rhel5 x86)

第一步:查找以前是否装有mysql 命令:rpm -qa|grep -i mysql 结果:如果有结果代表当前系统已经安装mysql的旧版本,没有结果则没有,请跳过第二步 例如:有结果的:          ...
  • u014682191
  • u014682191
  • 2015-04-20 20:52
  • 1392

centos7.0安装mysql5.7

下载mysql源的安装包 mysql源地址 安装源rpm -ivf mysql-community-release-el7-5.noarch.rpm安装yum install mysql-server然后按下Y就能安装成功了 但是我安装之后不能启动,运行了一下mysql_secure_inst...
  • scchary
  • scchary
  • 2015-05-29 15:08
  • 1092

mysql enterprise backup入门使用

mysqlbackup即mysql enterprise backup入门使用
  • yangzhawen
  • yangzhawen
  • 2015-04-01 15:57
  • 3017
    个人资料
    • 访问:5643802次
    • 积分:54515
    • 等级:
    • 排名:第61名
    • 原创:641篇
    • 转载:0篇
    • 译文:7篇
    • 评论:732条
    关于我

    • 十年以上数据库运维管理,性能优化经验
    • 提供数据库相关技术支持及数据库培训
    •  全部文章,欢迎扩散,转载请注明出处


    QQ/Weixin:645746311

    DBA交流群:170233858

    打赏作者
      支付宝&微信支付二维码
      支付宝&微信支付
    文章存档
    最新评论