当前位置:网站首页>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"
原文地址
边栏推荐
- How to switch to root in xshell
- RubyMine开发工具,重构和意图操作
- [recommendation system] concise principle and code implementation of user based collaborative filtering
- 赛芯电子冲刺科创板上市:拟募资6.23亿元,共有64项专利申请信息
- STC89C52 single chip microcomputer simple calculator design and code demonstration
- Seata 与三大平台携手编程之夏,百万奖金等你来拿
- Pytroch Learning Notes 6: NN network layer convolution layer
- shell 规范日期格式
- How to seamlessly transition from traditional microservice framework to service grid ASM
- How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method
猜你喜欢

MySQL installation steps (detailed)

优秀的测试/开发程序员与普通的程序员对比......
![[mrctf2020]ezpop-1 | PHP serialization](/img/f8/6164b4123e0d1f3b90980ebb7b4097.png)
[mrctf2020]ezpop-1 | PHP serialization

清洁、对话、带娃,扫地机摆脱“人工智障”标签

赛芯电子冲刺科创板上市:拟募资6.23亿元,共有64项专利申请信息

Analysis of IM instant messaging development technology on modern web

练习副“产品”:自制七彩提示字符串展示工具(for循环、if条件判断)

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

Clean, talk, bring children, and get rid of the label of "artificial mental retardation" for the sweeper

利用huggingface进行文本分类
随机推荐
3-6sql injection website instance step 5: break through the background to obtain web administrator permissions
Wechat applet - requestsubscribemessage:fail can only be invoked by user tap gesture
Programmers with a monthly salary of less than 30K must recite the interview stereotype. I will eat it first!
R language linear regression model fitting diagnosis outliers analysis of domestic gas consumption and calorie examples with self-test questions
如何拒绝期末复习无用功?猿辅导:找准适合自己的复习方法很重要
Solve the problem of repairing Visual Basic exceptions with excel/wps plug-in of choice financial terminal
The unity editor randomly generates objects. After changing the scene, the problem of object loss is solved
数据中台咋就从“小甜甜”变成了“牛夫人”?
How to seamlessly transition from traditional microservice framework to service grid ASM
What is digital garbage? Follow the world's first AI artist to explore meta carbon Art
Seata et les trois plateformes travaillent main dans la main pour programmer Summer, un million de bonus vous attend
C language final without failing (Part 1)
眼底出血术后需注意事项//每天必看
Equivalence class partition method for test case design method
The listing of Symantec electronic sprint technology innovation board: it plans to raise 623million yuan, with a total of 64 patent applications
Seata 与三大平台携手编程之夏,百万奖金等你来拿
Is the course of digging money reliable and safe to open an account?
Machine learning notes: time series decomposition STL
优秀的测试/开发程序员与普通的程序员对比......
xshell中怎么切换到root用户