No graph data since /var partition filled

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
william
Posts: 18
Joined: Mon Jun 06, 2005 5:38 am

No graph data since /var partition filled

Post by william »

Hi,

OS is FreeBSD 6.1-RELEASE.

Over night the /var parition filled up, this morning I made space, unmounted, fsck -y, mounted and then rebooted the server.

It seems all my graphs are now not working, in the cacti.log I'm getting ALOT of:

s (2831, 'cisco_memfree', '2008-04-15 10:05:37', '152931668')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2832, 'cisco_memused', '2008-04-15 10:05:37', '18815372')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2833, 'traffic_in', '2008-04-15 10:05:37', '3220684261')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2833, 'traffic_out', '2008-04-15 10:05:37', '2394334890')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2834, 'traffic_in', '2008-04-15 10:05:37', '1377339251')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2834, 'traffic_out', '2008-04-15 10:05:37', '69746617')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2835, 'traffic_in', '2008-04-15 10:05:37', '0')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2835, 'traffic_out', '2008-04-15 10:05:37', '0')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2836, 'traffic_in', '2008-04-15 10:05:37', '908658951')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2836, 'traffic_out', '2008-04-15 10:05:37', '12476422')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2837, '5min_cpu', '2008-04-15 10:05:37', '12')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2838, 'traffic_in', '2008-04-15 10:05:37', '1569018647')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2838, 'traffic_out', '2008-04-15 10:05:37', '698559562')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2839, 'traffic_in', '2008-04-15 10:05:37', '3888500664')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2839, 'traffic_out', '2008-04-15 10:05:37', '1370857620')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2840, 'traffic_in', '2008-04-15 10:05:37', '26859552')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2840, 'traffic_out', '2008-04-15 10:05:37', '3942735725')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2841, 'traffic_in', '2008-04-15 10:05:37', '2414358441')'
04/15/2008 10:05:37 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (2841, 'traffic_out', '2008-04-15 10:05:37', '3231346671')'
04/15/2008 10:05:38 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'145', SQL:"select poller_output.output, poller_output.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) "


Can someone please assist me in resolving my issue?

Cheers.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Run a repair on your Cacti database and all the tables in mysql.

Also, I would suggest that you use the System -> System Utilities -> Rebuild Poller Cache and run the following query:

Code: Select all

truncate poller_output;
Do these activities when the poller is NOT running.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
william
Posts: 18
Joined: Mon Jun 06, 2005 5:38 am

Post by william »

How do I run a repair on the cacti mysql db?
william
Posts: 18
Joined: Mon Jun 06, 2005 5:38 am

Post by william »

google says:

mysqlcheck --auto-repair --databases cacti

going to enable the poller and see what happens :)
william
Posts: 18
Joined: Mon Jun 06, 2005 5:38 am

Post by william »

rebuilt the cache and ran the query, now everything is updating :) Thanks Tony!!!
perjaka
Posts: 9
Joined: Tue Feb 03, 2009 5:32 pm

Post by perjaka »

rony wrote:Run a repair on your Cacti database and all the tables in mysql.

Also, I would suggest that you use the System -> System Utilities -> Rebuild Poller Cache and run the following query:

Code: Select all

truncate poller_output;
Do these activities when the poller is NOT running.
These steps also fixed out problem. We had a server lock up and an admin rebooted the box by unplugging it. After it came up 10 minutes later we had the same issue as described in this thread.

Basically we enabled logging and found it riddled with this: "08/27/2009 10:30:09 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'145', SQL:"insert into poller_output (local_data_id, rrd_name, time, output) values (....<bunch of values>')'"

Such a simple measure repaired months and over 1000 potentially lost graphs!

This thread = life saver.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests