Zabbix监控mysql

来自linux中国网wiki
Evan讨论 | 贡献2021年10月22日 (五) 07:13的版本
跳到导航 跳到搜索

Install Zabbix agent and MySQL client

* 1. Install Zabbix agent and MySQL client. If necessary, add the path to   
the mysql and mysqladmin utilities to the global environment variable PATH. 

Install Zabbix agent and MySQL client

密码查看 
  grep "password" /var/log/mysqld.log                                        
                                                                             
 2021-10-22T02:11:26.214298Z 1 [Note] A temporary password is generated for  
 root@localhost: 71p=K-p-mVur   



上次居然看不懂官方的 ,看来英文近来是提升了一点点呀


注意

   使用Zabbix自带模板监控MySQL时,Zabbix Server编译时需要使用“--with-libxml2”加入“libxml2”库。如果没有,需要重新编译Zabbix Server并重启。在CentOS中,可以通过“yum -y install libxml2 libxml2-devel”安装“libxml2”库。
   通过Zabbix源码目录中的“config.log”文件查看编译选项:


  1. cat /usr/local/src/zabbix-5.0.10/config.log | grep '^.*configure.*--prefix'


see also

Zabbix5.0 监控MySQL


Zabbix 监控Mysql 主从

qk 他们是监控了很多选项的 而我没空搞这么多

参考

zabbix 监控mysql状态以及mysql主从

[ ]

Zabbix 监控Mysql 主从状态(Python脚本

Zabbix监控mysql主从复制状态