进行系统 “df -lh” 发现根分区100%。伴随cacti无图像,nagios无数据。

检查数据库日志发现很多: \[ERROR\] /usr/libexec/mysqld: Table './xxx' is marked as crashed and should be repaired

检查Cacti日志发现很多,文件增长迅速: CMDPHP: Poller\[0\] ERROR: SQL Assoc Failed!, Error:'1017'

先修复mysql文件: myisamchk -c -r /var/lib/mysql/cacti/host\_snmp\_cache.MYI myisamchk -c -r /var/lib/mysql/nagios/nagios\_logentries.MYI

针对cacti日志出现表查询报错进行修复: mysql> truncate table poller\_output;

之后查询Cacti日志发现如下报错: CMDPHP: Poller\[0\] ERROR: SQL Cell Failed!, Error:'2006'

进行cacti控制台,点击“Console-System Utilities-Rebuild Poller Cache” 重建缓存。

Cacti和Nagios恢复正常。