Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


delete in data_sources.php

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
dieter
Cacti User


Joined: 20 Feb 2004
Posts: 164

PostPosted: Fri Feb 27, 2004 7:23 pm    Post subject: delete in data_sources.php Reply with quote

Deleting a datasource results in unused data being left in the table data_input_data_fcache

adding the following line of code after line 341 could solve the problem:
Code:
db_execute("delete from data_input_data_fcache where " . array_to_sql_or($selected_items, "local_data_id"));


The rrd files also stay in the directory after deleting a source. Any idea how to fix this?
Back to top
raX
Lead Developer


Joined: 13 Oct 2001
Posts: 2234
Location: Carlisle, PA

PostPosted: Tue Mar 30, 2004 9:17 pm    Post subject: Reply with quote

For some reason I already had this fixed in my code, so someone else or perhaps you pointed this out before.

About the orphaned .rrd files, there are lots of things that Cacti could probably do, but I have chosen to ignore this at the moment. I could see lots of situations where you would want to keep these .rrd files lying around for historical reasons perhaps. There would also be a permissions problem with this since the webserver user generally will not have the appropriate permissions to delete files in Cacti's 'rra/' directory. I suppose I could conjure up support for the poller to do this, but again that would definitely require a planned out feature.

-Ian
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group