linux完全卸载cacti,Linux下的Cacti网络管理系统--安装常见问题(一)

1.在安装php时或者Cactid/Spine/Cacti时出现php

checking for mysql_init in -lmysqlclient_r... nohtml

configure: error: MySQL libraries not foundmysql

解决办法:因为在编译php时没有加上--with-mysql=/usr/local/mysql 致使没法管理php开发apisql

2.在作php 链接数据库时出现 not defined mysql_connect()数据库

解决办法:php没有关联php api, 检查php编译时是否加上了--with-mysql=/usr/local/mysqlapi

3.在安装时,加入了--with-mysql=/usr/local/mysqlide

出现:whith "configure: error: MySQL libraries not found"post

解决办法: 肯定mysql能够正常运行的状况下,不要使用二进制的安装方式,本身手工编译,问题解决,url

网上所谓的奖--with-mysql 改成--with-mysql-dir这种是错误,它编译经过的缘由是因为,这种配置是错误的,./configure将其忽略了。spa

二.其余错误

错误一:

11/15/2010 07:34:42 PM - SPINE: Poller[0] FATAL: Unable to read configuration file! (Spine init)

11/15/2010 07:44:43 PM - SPINE: Poller[0] FATAL: MySQL Error:'1146', Message:'Table 'cacti.settings' doesn't exist' (Spine init)

解决:

检查你的spine配置文件,或从新安装spine

错误二:编辑spine时错误

checking if UCD-SNMP needs crypto support... no

checking if Net-SNMP needs crypto support... yes

checking for snmp_timeout in -lnetsnmp... no

Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP

checking for snmp_timeout in -lsnmp... no

configure: error: Cannot find UCD-SNMP libraries(snmp)

解决:

configure时加上--with-snmp=/usr/local/net-snmp/你的net-snmp路径

或不加或加上这个参数--with-static=/usr/local/lib

./configure --with-static=/usr/local/lib

错误三:

/usr/local/spine/spine

SPINE: Version 0.8.7b starting

11/15/2010 05:19:46 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)

11/15/2010 05:00:01 PM - SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.3.1 vs 5.3.2.2) (Spine parent)

此spine和net-snmp的版本有问题

解决:

先卸载之前安装的net-snmtp和spine

先安装net-snmp而后再编译安装spine此时你能够指定你的net-snmp也能够不指定,均可以的。

错误四

11/15/2010 05:00:01 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 300 seconds have passed since the last poll!

11/15/2010 04:56:00 PM - SYSTEM STATS: Time:59.2263 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:21 RRDsProcessed:0

11/15/2010 04:56:00 PM - POLLER: Poller[0] Maximum runtime of 58 seconds exceeded. Exiting.

解决:

由于cron的时间与poller.php的时间差异有关

通常poller.php的跟新时间为60s,因此cron里边也要设置成每分钟跟新一次

如:

*/1 * * * * /usr/bin/php /var/www/html/cacti/poller.php> /dev/null 2>&1

错误五

##########

11/16/2010 01:10:03 PM - SYSTEM STATS: Time:1.1319 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:8 RRDsProcessed:7

11/16/2010 01:10:02 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [127.0.0.1]: '/usr/bin/php -q /var/www/html/cacti/plugins/syslog/syslog_counter.php'

11/16/2010 01:09:11 PM - SYSTEM STATS: Time:1.1314 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:8 RRDsProcessed:7

11/16/2010 01:09:10 PM - SPINE: Poller[0] Host[4] ERROR: Empty result [127.0.0.1]: '/usr/bin/php -q /var/www/html/cacti/plugins/syslog/syslog_counter.php'

解决:

暂时的

delete from settings where name = 'syslog_last_incoming' ;

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值