zhouyi 发表于 2015-11-23 11:29:19

使用percona监控mysql ==> zabbix监控系列

agent下安装包:http://www.percona.com/redir/downloads/percona-monitoring-plugins/1.1.4/percona-zabbix-templates-1.1.4-1.noarch.rpm
yum -y install php php-mysql

agent下将配置文件拷入agent目录# cp /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf /etc/zabbix/zabbix_agentd.d/   #配置文件放到目录下,然后修改agent的配置
修改连接数据库的用户名密码:# vim /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php   #修改用户名密码

在mysql新建用户并授予权限:mysql> grant process,super,select on *.* to zabbix@localhost identified by 'zabbix';mysql> flush privileges;

模板文件位置,在zabbix_server的web界面导入/var/lib/zabbix/percona/templates/zabbix_agent_template_percona_mysql_server_ht_2.0.9-sver1.1.4.xml    #模版文件导入
页: [1]
查看完整版本: 使用percona监控mysql ==> zabbix监控系列