1.会手动生成一个rrd的文件
/usr/bin/php /var/www/html/cacti/poller.php --force
2.看下rrd文件有没有捕获到数据
rrdtool fetch *.rrd AVERAGE
1344562500: nan
1344562800: nan
1344563100: nan
1344563400: nan
1344563700: nan
1344564000: nan
1344564300: nan
这个表示没有获取到数据,仔细检查snmp,rrdtool
我的问题是:
08/10/2012 09:55:01 AM - 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! |
08/10/2012 09:50:01 AM - SYSTEM STATS: Time:0.1277 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:1 RRDsProcessed:1
|
意思是poller.php的时间间隔与crontab自动化任务的时间间隔不一致,把两个时间调整到一致就可以了
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
修改后等5分钟,就可以看到下面信息了
08/10/2012 10:05:06 AM - SYSTEM STATS: Time:1.9042 Method:spine Processes:10 Threads:10 Hosts:3 HostsPerProcess:1 DataSources:5 RRDsProcessed:5
然后再去看监控的信息就有了
阅读(1020) | 评论(0) | 转发(0) |