cacti ERROR 处理

问题一:PHP Warning:  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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/share/cacti/cmd.php on line 257
OK u:0.02 s:0.02 r:0.09


[root@cacti ~ ]# vim /etc/php.ini
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = PRC
修改好后重启httpd
[root@zabbix tmp]# service httpd restart



问题2:you don't have permission to access /cacti on this server
关闭SELINUX,
添加/etc/httpd/conf.d/cacti.conf
[root@cacti ~ ] # cat /etc/httpd/conf.d/cacti.conf
#
# Cacti: An rrd based graphing tool
#

# For security reasons, the Cacti web interface is accessible only to
# localhost in the default configuration. If you want to allow other clients
# to access your Cacti installation, change the httpd ACLs below.
# For example:
# On httpd 2.4, change "Require host localhost" to "Require all granted".
# On httpd 2.2, change "Allow from localhost" to "Allow from all".

Alias /cacti    /var/www/html/cacti


       
                # httpd 2.4
                Require all granted
                #Require host localhost
       
       
                # httpd 2.2
                Order deny,allow
                Deny from all
                Allow from localhost
       



        # mod_security overrides.
        # Uncomment these if you use mod_security.
        # allow POST of application/x-www-form-urlencoded during install
        #SecRuleRemoveById 960010
        # permit the specification of the rrdtool paths during install
        #SecRuleRemoveById 900011



# These sections marked "Require all denied" (or "Deny from all")
# should not be modified.
# These are in place in order to harden Cacti.

       
                Require all denied
       
       
                Order deny,allow
                Deny from all
       


       
                Require all denied
       
       
                Order deny,allow
                Deny from all
       


问题3:
spine安装
configure: error: Cannot find MySQL headers.  Use --with-mysql= to specify non-default path.
我是使用的centos7,没有mysql
[root@zabbix cacti-spine-0.8.8f]# yum install mariadb-devel -y

问题4:
fatal error: net-snmp/net-snmp-config.h: No such file or directory
[root@zabbix cacti-spine-0.8.8f]# yum install -y net-snmp-devel

问题5:
按照官方文档中编译安装spine会出错,官方文档的手册中的libtool方式可以成功
[root@zabbix cacti-spine-0.8.8f]# yum install libtool
[root@zabbix cacti-spine-0.8.8f]# aclocal
[root@zabbix cacti-spine-0.8.8f]# libtoolize --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: linking file `config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
[root@zabbix cacti-spine-0.8.8f]# autoheader
[root@zabbix cacti-spine-0.8.8f]# autoconf
[root@zabbix cacti-spine-0.8.8f]# automake
configure.ac:12: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:12: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
[root@zabbix cacti-spine-0.8.8f]# ./configure && make && make install
[root@zabbix etc]# cp spine.conf.dist /etc/spine.conf
[root@zabbix etc]# vim /etc/spine.conf 修改成相应的数据库信息.
DB_Host         localhost
DB_Database     cacti
DB_User         cactiuser
DB_Pass         cactiuser
DB_Port         3306

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值