AllowRoot=1
UnsafeUserParameters=1 //默认是0,表示不能使用自定义item
自定义conf文件存在在:/etc/zabbix/zabbix_agentd.d
UserParameter=web.api.item[*],/root/web_api.sh $1 $2 [*]表示使用多个参数 $1 表示第一个参数 $2 表示第二个参数