zoukankan      html  css  js  c++  java
  • zabbix开源监控。

    常见的安装错误总结:

    如果是红帽,centos系列首先安装依赖软件。

    yum install net-snmp-devel OpenIPMI OpenIPMI-devel rpm-build
    error:mysqlcilent library
    error: MYSQL library not find
    安装mysql-devel
    error: Curl library not found
    安装libcurl-devel
     Invalid NET-SNMP directory - unable to find net-snmp-config
    安装: net-snmp  net-snmp-devel
    error: Invalid OPENIPMI directory - unable to find ipmiif.h
    安装:OpenIPMI OpenIPMI-devel
    Call to undefined function bcscale() in /var/www/html/zabbix/include/defines.inc.php on line 797
    
    

    是php缺少一个数学库

    安装php-bcmath

     在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个

    "PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in"

     这样的错。如何解决呢

    实际上,从 PHP 5.1.0 ,当对使用date()等函数时,如果timezone设置不正确,在每一次调用时间函数时,都会产生E_NOTICE 或者 E_WARNING 信息。而又在php5.1.0中,date.timezone这个选项,默认情况下是关闭的,无论用什么php命令都是格林威治标准时间,但是PHP5.3中好像如果没有设置也会强行抛出了这个错误的,解决此问题,只要本地化一下,就行了。

     以下是三种方法(任选一种都行):

    一、在页头使用date_default_timezone_set()设置 date_default_timezone_set('PRC'); //东八时区 echo date('Y-m-d H:i:s');
    二、在页头使用 ini_set('date.timezone','Asia/Shanghai'); 
    三、修改php.ini。打开php5.ini查找date.timezone 去掉前面的分号修改成为:date.timezone =PRC

    PHP MB string 一直为no 那么安装

    yum insall php-mbstring  php-mbstrin php-bcmath  php-gd php-xml

    安装完成之后重启apache 

    checks to [127.0.0.1] failed: host [Zabbix server] not monitored

     主机没有被监控。

  • 相关阅读:
    网页美学设计原则(上)
    WF/WCF/WCS/WPF/MVC/AJAX
    CSS框架 960 grid system最新优化版使用指南
    自定义AuthorizeAttribute实现MVC权限设计
    企业网站,大气怎么设计
    博客网页配色表+流行色系
    iepngfix.htc和png8让IE6支持png背景透明
    网页美学设计原则(下)
    java中的环境变量设置及tomcat的设置
    注册时间
  • 原文地址:https://www.cnblogs.com/osxlinux/p/3134861.html
Copyright © 2011-2022 走看看