当前位置:网站首页>Mysql 监控6
Mysql 监控6
2022-06-30 01:19:00 【franket】
添加模板
配置Zabbix Server
- Grab the latest tarball from the Percona Software Downloads directory to your desktop.
- Unpack it to get zabbix/templates/ folder.
- Import the XML template using Zabbix UI (Configuration -> Templates -> Import) by additionally choosing “Screens”.
- Create/edit hosts by assigning them “Percona Templates” group and linking the template “Percona MySQL Server Template” (Templates tab).
上面一段直接摘抄于官方文档,因为写得已经很具体了
总结
- 安装插件包 percona-zabbix-templates
- 拷贝配置 userparameter_percona_mysql.conf
- 配置密码 ss_get_mysql_stats.php.cnf
- 安装依赖包 php php-mysql
- 给 zabbix 赋权
- 从 zabbix-server 进行连接测试
- 添加模板
命令汇总
mysql -Vcp /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf /etc/zabbix/zabbix_agentd.d/cat /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php.cnf/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh ggyum install php php-mysqlcat /tmp/localhost-mysql_cacti_stats.txtcat /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.shsudo -u zabbix -H /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh running-slavesudo -u zabbix -H /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh ggchown zabbix.zabbix /tmp/localhost-mysql_cacti_stats.txtmkdir /home/zabbixcp /etc/skel/.* /home/zabbix/chown -R zabbix.zabbix /home/zabbix/vim .my.cnfzabbix_get -s mysql-server -p 10050 -k "MySQL.running-slave"zabbix_get -s mysql-server -p 10050 -k "MySQL.Threads-connected"zabbix_get -s mysql-server -p 10050 -k "MySQL.max-connections"
原文地址
边栏推荐
- Machine learning notes: time series decomposition STL
- 利用tsne将不同句子关于相似度可视化出来
- [recommended] how to quickly locate a bug during testing
- [Thesis Writing] English thesis writing guide
- c语言选择,循环概述
- Cloud, IPv6 and all-optical network
- 2022-06-29:x = { a, b, c, d }, y = { e, f, g, h }, x、y两个小数组长度都是4。 如果有: a + e = b + f = c + g = d + h
- Live broadcast configuration of crmeb knowledge payment system program configuration (method 2)
- Solve the problem of repairing Visual Basic exceptions with excel/wps plug-in of choice financial terminal
- I learned database at station B (V): DQL exercise
猜你喜欢

数据中台咋就从“小甜甜”变成了“牛夫人”?

I learned database at station B (V): DQL exercise

R language linear regression model fitting diagnosis outliers analysis of domestic gas consumption and calorie examples with self-test questions

Sklearn notes: make_ Blobs generate clustering data

眼底出血术后需注意事项//每天必看

英伟达Jetson Nano的初步了解

Three text to speech artifacts, each of which is very practical

3-6sql injection website instance step 5: break through the background to obtain web administrator permissions

ctfshow 大赛原题 680-695

【论文写作】英文论文写作指南
随机推荐
ResizeKit2.NET大小和分辨率独立
CSV文件格式——方便好用个头最小的数据传递方式
HC32M0+ GPIO
VIM编辑器常用指令
81. search rotation sort array II
利用huggingface进行文本分类
How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method
The Web3 era is coming? Inventory of five Web3 representative projects | footprint analytics
Kubernetes 核心对象概览详解
How to unify the use of package manager in a project?
【535. TinyURL 的加密与解密】
快手伸手“供给侧”,找到直播电商的“源头活水”?
PHP wechat merchant transfer to change initiating merchant transfer API
Pytroch Learning Notes 6: NN network layer convolution layer
十大券商有哪些?另外,手机开户安全么?
[Simulation Proteus] détection de port 8 bits 8 touches indépendantes
The first unlucky person watching eth 2.0
[recommendation system] concise principle and code implementation of user based collaborative filtering
Kwai reached out to the "supply side" to find the "source" of live broadcast e-commerce?
UDP servers and clients in go