[ 本帖最后由 agg230 于 2006-6-26 14:30 编辑 ]作者: zhangr 时间: 2006-06-26 13:46
what's the version of your cacti ?
have you apply all the patches ?
I've met the same problem some times ago, and finally, by truncate table poller_output, the problem solved.
so please check whether the table "poller_output" is totally empty.
mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
if not ,truncate it.and run command:
php ./rebuild_poller_cache.php
php ./poller_reindex_hosts.php作者: agg230 时间: 2006-06-26 14:26
我的意思是,这台电脑上安装并使用CACTI已经有很长时间(大于一年),前面一直可以运行良好,可以显示数据,只是从昨天晚上十点开始,全部服务器的数据突然都无法在CACTI上显示出来。网络没有问题,按网上几个教程试着运行以下几个命令
snmpwalk -v 1 localhost -c public 结果:有数据显示
rrdtool fetch ***.rrd AVERAGE 结果:所有的记录都显示为nan
php /*/*/*/poller.php 结果:显示 Waiting on 1/1 pollers.
-------------------------------------------------------------------
回zhangr,MYSQL运行命令后,显示如下:
mysql>select count(*) from poller_output
count(*): 0
1 row in set (0.00 sec)
-------------------------------------------------------------------
应该和该表无关系吧
无从下手现在
[ 本帖最后由 agg230 于 2006-6-26 14:31 编辑 ]作者: zhangr 时间: 2006-06-26 14:39
turn on the debug log in the cacti,and check for more detail.
but the log maybe huge more than hundred KB every 5 mins.作者: agg230 时间: 2006-06-27 08:53
参考:http://www.cacti.net/downloads/docs/html/faq.html#AEN1927
----------------------------------------------------------------------------------------------
rra目录下文件为cactiuser拥有.
select Graph Management from the menu, select any graph listed, and select Turn On Graph Debug Mode. 结果可以绘图,但图中无数据,显示:RRDTool Says: OK
我的snmpd也是开启的
----------------------------------------------------------------------------------------------
对于cacti.log文件,最晚的记录为十点,从该时间点开始,CACTI中开始无数据显示,LOG文件不再有记录。
最后一条记录:
06/25/2006 10:00:00 AM - CMDPHP: Poller[0] Host[7] DS[74] SNMP: v1: 10.205.8.1, dsname: hdd_used, oid: .1.3.6.1.4.1.2021.9.1.8.1, output: 1
[ 本帖最后由 agg230 于 2006-6-27 09:26 编辑 ]作者: agg230 时间: 2006-06-27 12:14
参考:http://forums.cacti.net/about7359-30.html
Now, I am getting hanging pollers:
05/02/2005 05:12:55 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: , ARGS: 0 64]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
---------------------------------------------------------------------------------------
I disabled the device that was often the last rrd to update and now all the rrds are updating !!!
Yayaya
But this is with cmd.php and it takes 10 mins
cactid 0.8.6e is core dumping
---------------------------------------------------------------------------------------
Ok, I now realize all entries returned by the "None" were "bogus" and I have deleted them.作者: agg230 时间: 2006-06-27 15:26
参考:http://chinaunix.net/jh/4/552218.html
5.更新 RRD 資料 (rrdtool update)