1、出现下面提示

cacti 安装过程出现的错误解决办法

解决办法:登录mysql,执行下面内容

 mysql> GRANT SELECT ON mysql.time_zone_name TO [email protected] IDENTIFIED BY 'cactiwhsir';


2、然后又出现新的提示: ERROR: Your MySQL TimeZone database is not populated. Please populate this database before proceeding.

   

解决办法执行以下内容:

      /usr/local/mysql/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -uroot -p mysql       ##二进制免编译与源码包解决办法

      /usr/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -uroot -p mysql                             ##yum安装解决办法

3、/usr/local/spine/bin/spine 找不到

cacti 安装过程出现的错误解决办法

解决办法:

# cd /usr/local/src/

# wget https://www.cacti.net/downloads/spine/    ##选择版本下载

# tar -zxvf cacti-spine-latest.tar.gz

# cd cacti-spine-latest

./configure --prefix=/usr/local/spine    

#make        

#make install

编译安装过程中的报错解决办法:

报错:checkingfor mysql_thread_init in -lmysqlclient_r... yes

configure:error: Cannot find SNMP headers.  Use--with-snmp= to specify non-default path.

解决办法:# yum install -y net-snmp-devel

报错:false // No help2man // —output=spine.1 —name='Data Collector for Cacti' —no-info —version-option='—version' ./spine

Makefile:939: recipe for target 'spine.1' failed

make: *** [spine.1] Error 1

解决办法:  # yum install -y help2man