zoukankan      html  css  js  c++  java
  • centos6.5搭建zabbix常见问题

    问题1:

    [root@centos6 zabbix-2.2.2]# ./configure --sysconfdir=/etc/zabbix/ --enable-server --enable-agent --with-net-snmp --with-libcurl --with-mysql

    检测环境时,出现如下错误,提示找不到库文件

    checking for main in -lmysqlclient... no

    configure: error:Not found mysqlclient library

    解决方法如下:

    [root@centos6 zabbix-2.2.2]# ./configure --sysconfdir=/etc/zabbix/ --enable-server --enable-agent --with-net-snmp --with-libcurl --with-mysql=/usr/lib64/mysql/mysql_config

    问题2:

    缺少一些依赖的软件,这种问题比较easy,直接用yun安装即可

    checking for curl-config.. no

    configure: error: Curl library not found

    checking for net-snmp-config... no

    configure: error: Invalid Net-SNMP directory -unable to find net-snmp-config

    解决方法是安装相应的软件即可

    #yum install curl-devel

    #yum install net-snmp-devel

    问题3:

    在安装zabbix web界面的时候,输入IP/zabbix/setup.php出现英文界面,笔者在过程中有截图,这里就不展示了,既然zabbix的终端程序是由php实现的,出现这种情况肯定也是跟php有关,所以我的解决方法是:

    #yum install php*

    此时再做测试web安装zabbix界面就出现了!!!

    问题4:

    登录zabbix web界面以后上面老提示zabbix is not running。。。

    对于这个问题,我找了很多解决方案,可是都没有解决,最终原因竟然是由于我zabbix server的配置文件中的信息可能不符合我虚拟机的实际情况,由于笔者刚刚接触zabbix,所以配置参数由浅入深,对于一些参数在今后根据实际情况再做相应的配置,当下的配置如下:

    LogFile=/tmp/zabbix_server.log

    DBName=zabbix

    DBHost=10.0.0.20

    DBUser=zabbixuser

    DBPassword=XXX

    这样就OK了,重启zabbix-server即可!!!

  • 相关阅读:
    Mysql 怎么限制 IP 访问?
    LA2965 n个数中选出最多个数异或和为0
    UVALive 2678 大于s的最短子序列和
    UVA 1193 区间相关(greedy)
    UVA 11992 线段树
    UVA 1400 线段树
    NBUT 1120 线段树
    最大连续区间和的算法总结(转)
    hiho 1015 KMP
    hiho#1128 : 二分·二分查找
  • 原文地址:https://www.cnblogs.com/hongjun0619/p/5127296.html
Copyright © 2011-2022 走看看