21
2020
05
09:13:14

Cacti 不出图,后台提示数据库inter 表时出错。



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:‘1062‘, SQL:"INSERT INTO poller_item (local_data_id, host_id, action,hostname, snmp_community, snmp_version, snmp_timeout, snmp_username, snmp_password, snmp_auth_protocol, snmp_priv_passphrase, snmp_priv_protocol, snmp_context, snmp_port, rrd_name, rrd_path, rrd_num, rrd_step, rrd_next_step, arg1, arg2, arg3) VALUES (2356, 22, 0,‘192.168.251.65‘, ‘catv‘, ‘2‘, ‘500‘, ‘‘, ‘‘, ‘MD5‘, ‘‘, ‘DES‘, ‘‘, ‘161‘, ‘traffic_out‘, ‘/var/www/html/rra/edu-sanhe-s5800_traffic_in_2356.rrd‘, ‘2‘, ‘60‘, ‘0‘, ‘.1.3.6.1.2.1.31.1.1.1.10.1‘, ‘‘, ‘‘)‘


进入mysql 

use "cacti"

select count(*) from poller_output;

mysql> truncate table poller_output;

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


或:

# REPAIR TABLE修复数据表
mysql> REPAIR TABLE poller_item;
+-------------------+--------+----------+----------+
| Table             | Op     | Msg_type | Msg_text |
+-------------------+--------+----------+----------+
| cacti.poller_item | repair | status   | OK       |
+-------------------+--------+----------+----------+
1 row in set (0.02 sec)
 
mysql>
修复成功。
如果修复失败,可以尝试用USE_FRM选项,例:
mysql> REPAIR TABLE poller_item USE_FRM;


Cacti 不出图,后台提示数据库inter 表时出错。

标签:cacti   mysql   1062   

原文:http://170182.blog.51cto.com/160182/1656168


本文链接:http://www.hqyman.cn/post/1276.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: