# grep Include /etc/zabbix/zabbix_agentd.conf ### Option: Include # Include= Include=/etc/zabbix/zabbix_agentd.d/
配置KEY average:
# cat /etc/zabbix/zabbix_agentd.d/average.conf UserParameter=average[*],uptime|awk '{print $NF}'
查看权限:
# ll /etc/zabbix/zabbix_agentd.d/average.conf -rw-r--r-- 1 root root 50 Apr 25 21:23 /etc/zabbix/zabbix_agentd.d/average.conf
重启客户端:
# /etc/init.d/zabbix-agent restart
查看是否能取值成功:
# zabbix_get -s localhost -k average 0.06
在web端配置:
首先创建Templates:LoadeAverage
创建Item:load_averate
创建法值:load average iin 15 is to hight on {HOST.NAME}
然后把这个新建的Templates:LoadeAverage加HOST中