报错如下:
[root@master scripts]# /usr/local/zabbix/bin/zabbix_get -s 127.0.0.1 -k web.site.code[www.baidu.com]
timeout while executing a shell script 解决:
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
vim zabbix_agentd.conf ### Option: Timeout
# Spend no more than Timeout seconds on processing
#
# Mandatory: no
# Range: 1-30
# Default:
# Timeout=3
Timeout=30
操作选项:
agent.version
-z --zabbix-server server Hostname or IP address of Zabbix server or proxy
to send data to.
-s --host host
-k --key key
-o --value value
-i --input-file input-file
-v --verbose