LogFile=/tmp/zabbix_agentd.log
Server=127.0.0.1,10.10.10.9 #添加本机及zabbix server的ip
ServerActive=127.0.0.1,10.10.10.9 #添加本机及zabbix server的ip
Hostname=agent1 #agent名
Include=/usr/local/zabbix/etc/zabbix_agentd.conf.d/ #扩展配置目录
UnsafeUserParameters=1 #允许自定义key
4. 自定义key
# cat /usr/local/zabbix/zabbix_agentd.conf.d/mysql_status.conf
UserParameter=mysql.status[*],/usr/local/zabbix/bin/mysql_status $1
UserParameter=mysql.ping,/usr/local/mysql/bin/mysqladmin ping -h“mysql IP” -uzabbix
-pzabbix(北联网教程,专业提供视频软件下载)
……