linux / zabbix · 2022年8月26日 0

[SOLVED]ZBX_NOTSUPPORTED: Timeout while executing a shell script.

背景:zabbix-server端使用zabbix_get命令获取zabbix-agent端自定义监控项时,出现ZBX_NOTSUPPORTED: Timeout while executing a shell script. 报错。

解决方案:

修改zabbix-server和zabbix-agent配置文件,将超时时间(Timeout)设置大一些

# vim /etc/zabbix/zabbix_server.conf
# vim /etc/zabbix/zabbix_agentd.conf
Timeout=30

重启zabbix-server和zabbix-agent

# systemctl restart zabbix-server.service
# systemctl restart zabbix-agent.service