23213 发表于 2016-4-20 09:15:20

zabbix 执行自定义key脚本超时

报错如下:

1
2
# /usr/local/zabbix/bin/zabbix_get -s 127.0.0.1 -k web.site.code[www.baidu.com]
timeout while executing a shell script




解决:

1
vim zabbix_server.conf




中调整如下超时时间即可(再重启server)

### Option: Timeout
#   Specifies how long we wait for agent, SNMP device or external check (in seconds).
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
Timeout=30


1
vim zabbix_agentd.conf




### Option: Timeout
#   Spend no more than Timeout seconds on processing
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
Timeout=30

页: [1]
查看完整版本: zabbix 执行自定义key脚本超时