CMDPHP: Poller[0] mportant;">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;
原文:http://170182.blog.51cto.com/160182/1656168
本文链接:https://www.kinber.cn/post/1276.html 转载需授权!
推荐本站淘宝优惠价购买喜欢的宝贝: