Zabbix实战-简易教程--排错(持续收集中)

一、安装错误

1、zabbix 安装故障之无法跳到下一步或点击下一步没反应

执行命令:chownnginx:nginx /var/lib/php/session/ -R
 

2、proxy上无法采集交换机数据

yum install net-snmp net-snmp-utils
 

3、2.2.4升级到3.0,提示缺少参数HistoryIndexCacheSize

 21076:20160714:115534.776 [file:dbcache.c,line:2610] zbx_mem_realloc(): please increase HistoryIndexCacheSize configuration parameter
解决方法:zabbix_server.conf中配置HistoryIndexCacheSize参数。

4、安装完成后,dashboard提示php错误

解决方式:
chown -R nginx:nginx /var/run/php-fpm
chown -R nginx:nginx /var/lib/php/session 

5、提示The frontend does not match Zabbix Server。Current database version(mandatory/optional)

原因:web前端(配置文件zabbix.conf.php)的数据版本升级到了3.0,但是后端配置(zabbix_server.conf)连接的还是2.0.2版本的数据库
解决方式:后端配置成3.0版本的数据库。

6、error: Failed dependencies:dejavu-sans-fonts is needed by zabbix-web-2.2.3-1.el6.noarch

[root@localhost ~]# rpm -ivh zabbix-web-2.2.3-1.el6.noarch.rpm zabbix-web-mysql-2.2.3-1.el6.noarch.rpm 
warning: zabbix-web-2.2.3-1.el6.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
error: Failed dependencies:dejavu-sans-fonts is needed by zabbix-web-2.2.3-1.el6.noarch

解决方法:

[root@localhost ~]# yum -y install dejavu-sans-fonts

二、监控项错误

 

三、触发器错误

 

四、Agent端错误

1、zabbix报错first network error, wait for 15 seconds

2、zabbix_server.log出现的提示Sending list of active checks to [192.168.100.12] failed: host [CentOS-35] not found

解决方法:
因为zabbix_agentd.conf配置文件中的Hostname与web中的主机名不一致,需要修改agent中的hostname和web中主机名称一致,注意:这里不是可见名称。

3、agent连接不上,提示Get value from agent failed: cannot connect to [[192.168.30.2]:10050]: [111] Connection refused

4、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使其生效。

5、安装错误Error Downloading Packages

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命令查看得知磁盘被占满,删除一些日志即可

五、server端错误

主机名命名:字母数字,空格,点,破折号和下划线

1、zabbix 创建map显示 map image update failed

 

解决办法:chown nginx:nginx /var/lib/php/session

2、no active checks on server

5207:20170912:092904.219 no active checks on server [192.168.1.100:10051]: host [bgp-bjzw-zabbix-server02.seasea.cn] not found
原因:这是因为zabbix_agentd.conf配置文件中的Hostname与web中的主机名一致即可。

3、Get value from agent failed: cannot connect to [[192.168.30.2]:10050]: [111] Connection refused

原因:检查防火墙是否已开放10050端口让proxy或server访问的权限。可临时关闭防火墙验证。

4、Get value from agent failed: cannot connect to [[192.168.30.3]:10050]: [113] No route to host

原因:最有可能是目标主机无法ping不可达或机器没开机,也有可能是防火墙没有放通。

故障排除:

a)查看192.168.30.3这台机器是否已开机
b)在zabbix server端向这台机器ping,看网络是否通
c)用telnet 登录10050端口,看该主机是否允许这个端口通讯
d)查看iptables防火墙规则是否拦截10050端口

5、zabbix server is not running: the information displayed may not be current.

故障排除:

a、zabbix server的服务是否正确开启

b、zabbix server的zabbix.conf.php 配置脚本中server ip地址是否正确

c、selinux是否关闭

d、防火墙是否正确放通

 

6、centos7上启动zabbix服务,提示zabbix-server.service never wrote its PID file. Failing. 的错误

解决办法:selinux问题,在终端执行setenforce 0命令即可。

 

 

posted @ 2017-09-11 23:20  skyflask  阅读(11530)  评论(0编辑  收藏  举报