- 论坛徽章:
- 0
|
有对cacti比较熟的吗?请教各位牛人一个问题,cacti搭好以后执行以下命令,有如下报错,请各位帮忙
# /usr/local/bin/php /usr/local/apache/htdocs/cacti/poller.php
07/26/2011 08:24:16 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
07/26/2011 08:24:16 PM - SYSTEM STATS: Time:292.9097 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:26 RRDsProcessed:0
Warning: pclose(): 48 is not a valid stream resource in /usr/local/apache/htdocs/cacti/lib/rrd.php on line 47
看过一个类似的帖子如下:
cat /var/www/html/cacti/log
07/02/2011 06:21:23 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 168 seconds have passed since the last poll!
07/02/2011 06:21:24 PM - SYSTEM STATS: Time:1.2512 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:18 RRDsProcessed:14
解决方法是修改了snmp的配置
我的snmp好像也有点问题,但服务能起,功能没问题,可以从本地获取相关信息,但远程设备获取不到,error log如下,
tail: snmpd.log: file truncated
/usr/local/net-snmp/share/snmp/snmpd.conf: line 140: Error: Already have an entry for this process.
/usr/local/net-snmp/share/snmp/snmpd.conf: line 143: Error: Already have an entry for this process.
/usr/local/net-snmp/share/snmp/snmpd.conf: line 146: Error: Already have an entry for this process.
NET-SNMP version 5.3.0.1
对应的3行分别为:
# Make sure mountd is running
proc mountd
# Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4
# Make sure at least one sendmail, but less than or equal to 10 are running.
proc sendmail 10 1 |
|