解决Cacti故障,cacti.log中出“ERROR: SQL Assoc Failed!”的错误

故障现象:

查看cacti.log日志出现大量的类似“CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017'”的错误,具体内容如下:

04/24/2014 04:00:41 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1017', SQL:"select  poller_output.output,  poller_output.time,  UNIX_TIMESTAMP(poller_output.time) as unix_time,  poller_output.local_data_id,  poller_item.rrd_path,  poller_item.rrd_name,  poller_item.rrd_num  from (poller_output,poller_item)  where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)  LIMIT 10000"

解决办法:

# mysql

mysql> use cacti

mysql> select count(*) from poller_output;
ERROR 1017 (HY000): Can't find file: 'poller_output' (errno: 2)

mysql>  truncate table poller_output;
Query OK, 0 rows affected (0.00 sec)

mysql> select count(*) from poller_output;
+----------+
| count(*) |
+----------+
|        0 |
+----------+
1 row in set (0.00 sec)

问题解决,再次查看cacti.log,不再出现ERROR: SQL Assoc Failed!内容。

你可能感兴趣的:(解决Cacti故障,cacti.log中出“ERROR: SQL Assoc Failed!”的错误)