1、grant user for mysqlGRANT
USAGE ON *.* TO 'zabbix'@'localhost' IDENTIFIED BY "zabbix";2、touch /var/lib/zabbix/.my.cnf# Zabbix Agent[mysql]host=localhostuser=zabbixpassword=zabbixsocket=/tmp/mysql.so
Notes:
Red font color means get monitor values by Linux Command Line
Blue font color means Zabbix Agent Standard Items Key
Green font color means user-defined configuration in zabbix_agentd.userpar