zoukankan      html  css  js  c++  java
  • cacti-不出图形,cacti.log中出“ERROR: SQL Assoc Failed!

    [root@CactiEZ log]# tail cacti.log
    2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"
    2016年04月06日 14:53:16 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'2006', SQL:"select  poller_output.output,  poller_output.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"
    2016年04月06日 14:53:17 PM - CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"



    发现cacti不绘制图形,日志(cacti/log)出现这样的报错。
    解决方法:

    # 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里的系统工具---重建采集器缓存   不出图像的话,可以试试这个。

  • 相关阅读:
    03_ if 练习 _ little2big
    uva 11275 3D Triangles
    uva 12296 Pieces and Discs
    uvalive 3218 Find the Border
    uvalive 2797 Monster Trap
    uvalive 4992 Jungle Outpost
    uva 2218 Triathlon
    uvalive 3890 Most Distant Point from the Sea
    uvalive 4728 Squares
    uva 10256 The Great Divide
  • 原文地址:https://www.cnblogs.com/l1pe1/p/7985413.html
Copyright © 2011-2022 走看看