Zabbix monitoring MySQL

Source: Internet
Author: User
Tags mysql host

Use Zabbix default templates to monitor MySQL, which is named template App MySQL.

1, in the monitoring of the MySQL host installed on the client, specifically do not repeat, you can refer to http://chinawu.blog.51cto.com/10692884/1750861.

2, in the MySQL database to give Zabbix authorization,

Mysql-uroot-p123456-e "GRANT USAGE on * * to ' zabbix ' @ ' localhost ' identified by ' Zabbix '";

3, because is Yum installs the Zabbix client, by default in etc, enters the Zabbix directory Cd/etc/zabbix, discovers only zabbix_agentd.conf and ZABBIX_AGENT.D, modifies the configuration file zabbix_ agentd.conf, where server= server ip,serveractive=0.0.0.0:10050,hostname is customized and unique.

4. Create Zabbix associated database files, Mkdir/etc/zabbix/etc,vim. MY.CNF (a point before and after my), content

[MySQL]
Host=localhost
User=zabbix
Password=zabbix
[Mysqladmin]
Host=localhost
User=zabbix
Password=zabbix

5, modify the directory Zabbix_agent.d userparameter_mysql.conf, the home value to change to/etc/zabbix/etc, that is, home=/etc/zabbix/etc/, a total of three places.

6. Open 10050 Port

7, restart the Zabbix-agent service.

This article is from the "Tea Incense" blog, please be sure to keep this source http://chinawu.blog.51cto.com/10692884/1770460

Zabbix monitoring MySQL

Related Article

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.