zabbix监控mysql

登陆mysql
GRANT USAGE SUPER, REPLICATION CLIENT ON . TO 'zabbix'@'localhost' IDENTIFIED BY 'zabbix';
GRANT USAGE SUPER, REPLICATION CLIENT ON . TO 'zabbix'@'127.0.0.1' IDENTIFIED BY 'zabbix';
FLUSH PRIVILEGES;
vim /etc/zabbix/.my.cnf
[mysql]
user=zabbix
password=zabbbix
[mysqladmin]
user=zabbix
password=zabbix
确保agent配置文件中Include=/etc/zabbix/zabbix_agentd.d/启用
service zabbix-agent restart
在web上面添加模板就可以了
http://blog.csdn.net/saga_gallon/article/details/55098315
http://www.ttlsa.com/zabbix/zabbix-monitor-mysql/

你可能感兴趣的:(zabbix监控mysql)