①报错:
zabbix_agentd [20529]: cannot create Semaphore: [28] No space left on device
zabbix_agentd [20529]: unable to create mutex for log file
centos6.5装上agent之后,却发现启动不了,日志里面报错如下:
zabbix_agentd [20529]: cannot create Semaphore: [28] No space left on device
zabbix_agentd [20529]: unable to create mutex for log file
修改/etc/sysctl.conf
添加如下行:
kernel.sem = 500 64000 64 256
修改之后,执行sysctl -p使其生效。
重新启动zabbix-agent即可
②报错:No route to host处理
今天在客户端配置Zabbix_agentd后,通过自动注册到 Zabbix_Server 页面中,点击主机列表却发现ZBX显示红色,无法被监控到,查看报错为:
No route to host
在客户端telnet服务端的10051端口发现没有问题,服务端telnet 客户端10050端口报错:
telnet 1.1.1.1 10050
Trying 1.1.1.1...
telnet: connect to address 120.27.241.253: No route to host
原来是被客户端的防火墙档掉了,关闭客户端防火墙或者配置相应规则即可
③安装错误:
Error Downloading Packages:
zabbix-agent-1.8.22-1.el6.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6/epel/packages
* free 0
* needed 131 k
zabbix-1.8.22-1.el6.x86_64: Insufficient space in download directory /var/cache/yum/x86_64/6/epel/packages
* free 0
* needed 93 k
原因:
磁盘空间不足,通过
df -lh命令查看得知磁盘被占满,删除一些日志即可
④zookeeper不出图
查看日志/var/log/zabbix/zabbix_agentd.log,大量的报错
1404:20161225:183259.913 active check configuration update from [1.1.1.1:10051] started to fail (ZBX_TCP_READ() timed out)
原来是zabbix_sender需要主动向服务器发送数据,而zabbix-server端的10051端口被防火墙挡住了,重新放行端口问题解决