1.检查用户组是否给了对应的主机组读写权限
2.在/etc/zabbix/zabbix_server.conf
配置文件中修改执行脚本的用户
# will try to switch to the user specified by the User configuration option instead.
# Has no effect if started under a regular user.
# 0 - do not allow
# 1 - allow
#
# Mandatory: no
# Default:
AllowRoot=1
### Option: User
# Drop privileges to a specific, existing user on the system.
# Only has effect if run as 'root' and AllowRoot is disabled.
#
# Mandatory: no
# Default:
User=root
快去试试看吧!!!