Re-run failed queries from log file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
bntlinux
Posts: 2
Joined: Fri Jun 13, 2014 7:15 am

Re-run failed queries from log file

Post by bntlinux »

Hello,

I have had an issue with the mysql database (problem with the poller_output table) that cost me 3 days worth of data on Cacti
I have found that all queries are in the var/log/cacti/cacti.log file and have been able to extract them

My question is what is the impact of running these queries in mysql knowing that the polling is working again and data, newer than the one in the logs, is now displayed in the charts

An example query that failed:

Code: Select all

insert into poller_output (local_data_id, rrd_name, time, output);values (387, 'traffic_in', '2014-06-10 12:15:04', '0');
Thanks in advance for your help,

Regards,
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Re-run failed queries from log file

Post by Linegod »

It is not going to work.

RRDTool will not let you insert old data directly.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: Re-run failed queries from log file

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
bntlinux
Posts: 2
Joined: Fri Jun 13, 2014 7:15 am

Re: Re-run failed queries from log file

Post by bntlinux »

Ok Thanks for the reply
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests