zoukankan      html  css  js  c++  java
  • Zabbix报错信息及遇到的问题

    1. 页面报错  Error connecting to database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

    我的数据库sock文件在这     /data/mysql/mysql.sock

    [root@bash-5 ~]# mkdir /var/lib/mysql/

    [root@bash-5 ~]# ln -s /data/mysql/mysql.sock /var/lib/mysql/mysql.sock
    [root@bash-5 ~]# ll /var/lib/mysql/mysql.sock  
    lrwxrwxrwx 1 root root 22 Feb 14 19:30 /var/lib/mysql/mysql.sock -> /data/mysql/mysql.sock

    2. Zabbix ( proxy ) poller processes more than 75% busy 问题

    一:重启zabbix-server 结合定时任务

    service zabbix-server restart

     crontab -e 新加一个定时任务:

    @daily service zabbix-server restart > /dev/null 2>&1

    二:编辑Zabbix Server的配置文件/etc/zabbix/zabbix_server.conf,找到配置StartPollers的段落:

    ### Option: StartPollers
    #       Number of pre-forked instances of pollers.
    #
    # Mandatory: no
    # Range: 0-1000
    # Default:
    # StartPollers=5

     直接在这增加一行:   StartPollers=10

    Proxy的在这里: 

    ### Option: StartProxyPollers
    # Number of pre-forked instances of pollers for passive proxies.
    #
    # Mandatory: no
    # Range: 0-250
    # Default:
    # StartProxyPollers=1
    StartProxyPollers=5

    将参数配置改成多少取决于服务器的性能和监控的数量。内存足够的话可以设置高些

    3. Zabbix value cache working in low memory mode

    [root@localhost zabbix] vi /etc/zabbix/zabbix_server.conf
    ### Option: CacheSize
    # Size of configuration cache, in bytes.
    # Shared memory size for storing host, item and trigger data.
    #
    # Mandatory: no
    # Range: 128K-2G
    # Default:
    # CacheSize=8M
    CacheSize=256M

    [root@localhost zabbix]# systemctl restart zabbix-server

    4. Zabbix value cache working in low memory mode 

    修改 zabbix_server.conf配置文件,定位到ValueCacheSize,然后调高ValueCacheSize大小,大小根据自己环境调整

    ### Option: ValueCacheSize
    # Size of history value cache, in bytes.
    # Shared memory size for caching item history data requests.
    # Setting to 0 disables value cache.
    #
    # Mandatory: no
    # Range: 0,128K-64G
    # Default:
    ValueCacheSize=64M       ####默认为8M

    5.error: Failed dependencies

    fping is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64
    libOpenIPMI.so.0()(64bit) is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64
    libOpenIPMIposix.so.0()(64bit) is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64
    libevent-2.0.so.5()(64bit) is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64
    libiksemel.so.3()(64bit) is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64
    libodbc.so.2()(64bit) is needed by zabbix-server-mysql-3.4.8-1.el7.x86_64

    安装依赖包

    yum install fping  libevent OpenIPMI iksemel  unixODBC  dejavu-sans-fonts

    自用博文.不限传播.欢迎留言.共同进步.
  • 相关阅读:
    Linux curl使用简单介绍
    SecureCRT编码转换vim
    BigTable/HBase基本概念解读 & Hbase shell常用命令
    Crontab用法说明(Linux)
    Sina SSO 登陆过程分析
    浅谈队列
    搞怪的 log4net 记录日志 性能测试
    iBatis.Net异步多线程 操作Ibatis报错
    高并发高负载的大型网站系统架构
    [置顶] IIs Web 站点安全 监控 站点自动部署 重启
  • 原文地址:https://www.cnblogs.com/mingetty/p/10316046.html
Copyright © 2011-2022 走看看