CosEmon 2020-05-31
[ ~]# vim /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf UserParameter=mysql.ping,mysqladmin -uroot -p123456 -h‘127.0.0.1‘ ping 2> /dev/null | grep -c alive UserParameter=mysql.version,mysql -V
[ ~]#systemctl restart zabbix-agent
[ ~]# zabbix_get -s 192.168.1.130 -k mysql.ping 1