Cacti graphs stoped drawing after machine power failure

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mohamedbahaa
Posts: 11
Joined: Thu Jul 25, 2013 8:24 am

Cacti graphs stoped drawing after machine power failure

Post by mohamedbahaa »

Dears,

i seek your valuable support to overcome my problem.

my cacti machine faced a sudden power cut & after i booted it again i found graphs stopped. from SSH access to server i found it normally snmpwalk on several hosts.

i found the following logs in caci :

07/31/2013 04:41:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.time, UNIX_TIMESTAMP(poller_output.time) as unix_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"
07/31/2013 04:41:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.time, UNIX_TIMESTAMP(poller_output.time) as unix_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"
07/31/2013 04:41:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.time, UNIX_TIMESTAMP(poller_output.time) as unix_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"
07/31/2013 04:41:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.time, UNIX_TIMESTAMP(poller_output.time) as unix_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"
07/31/2013 04:41:42 PM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.time, UNIX_TIMESTAMP(poller_output.time) as unix_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"


please help me as i'm in a critical situation
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graphs stoped drawing after machine power failure

Post by gandalf »

Did you already google that error message number?
R.
mohamedbahaa
Posts: 11
Joined: Thu Jul 25, 2013 8:24 am

Re: Cacti graphs stoped drawing after machine power failure

Post by mohamedbahaa »

yes i did; but not solved.

i succeeded to solve the problem by repairing cacti DB using the following command:

mysqlcheck --auto-repair --databases cacti -u root -p
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti graphs stoped drawing after machine power failure

Post by gandalf »

Well, something like this is done by cli/repair_database.php script.
But glad you got it solved
R.
mohamedbahaa
Posts: 11
Joined: Thu Jul 25, 2013 8:24 am

Re: Cacti graphs stoped drawing after machine power failure

Post by mohamedbahaa »

thank you.

i'll be soo glad too if you could help me to solve my other problem "Aggregate graph not working "The RRD file does not exist"
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests