Zabbix通过percona监控MySQL

  1. yum install https://www.percona.com/downloads/percona-monitoring-plugins/1.1.6/percona-zabbix-templates-1.1.6-1.noarch.rpm
  2. cp /var/lib/zabbix/percona/templates/userparameter_percona_mysql.conf /opt/local/zabbix/etc/zabbix_agentd.conf.d/
  3. vim /opt/local/zabbix/etc/zabbix_agentd.conf #添加 Include=/opt/local/zabbix/etc/zabbix_agentd.conf.d/*.conf
  4. vim /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php.cnf#修改$mysql_user和$mysql_pass的值
  5. 导入percona模板、
  6. http://www.cnblogs.com/caoxiaojian/p/5706992.html

 

posted @ 2017-05-19 15:22  howhy  阅读(172)  评论(0编辑  收藏  举报