zabbix template mysql

zabbix template mysql

notion image
## 使用bash创建zabbix模板 1、配置Mysql主从 master
slave
2、配置zabbix_agent
3、监控脚本验证
4、zabbix web添加模板
notion image
notion image
监控项
notion image
notion image
图形
notion image
notion image
触发器
notion image
notion image
5、zabbix web添加主机监控
notion image
notion image
6、验证
notion image

基于percona-monitoring-plugins创建模板

官方文档:https://www.percona.com/software/documentation https://www.percona.com/doc/percona-monitoring-plugins/1.1/index.html 软件包获取:https://www.percona.com/downloads/percona-monitoring-plugins/ https://downloads.percona.com/downloads/percona-monitoring-plugins/percona-monitoring-plugins-1.1.8/binary/redhat/7/x86_64/percona-zabbix-templates-1.1.8-1.noarch.rpm
1、基于php的方式实现,需要安装php和php- mysql yum install php php-mysql 2、安装模板.https://www.percona.com/downloads/percona-monitoring-plugins/
3、复制con配置文件/var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf到 zabbix agent目录
4、创建php账户密码文件,/var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php.cnf
5、导入模板并关联主机
导入模板失败
notion image
notion image
修改时间区域及snmp相关设置主机添加mysql模板
notion image
验证数据是否采集
notion image
Loading...