2015-11-09
早上同事反馈cacitweb界面不显示用户帐号,开始以为被黑隐藏了,因为虽然没显示具体名称,但显示有3个帐号哎。同事让查看config.php明显思路不对,在网上找了,群里问了没果。只能看下日志,发现确实有问题呢
AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"SELECT id, user_auth.username, full_name, realm, enabled, policy_graphs, time, max(time) as dtime FROM user_auth LEFT JOIN user_log ON (user_auth.id = user_log.user_id) GROUP BY id ORDER BY username ASC LIMIT 0,30"
搜了下这错误还真有。
解决办法:mysqlcheck --auto-repair --databases cacti -p