Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Mon May 21, 2012 9:12 am


ATTENTION: All users passwords have been cleared.
Please use the "Forgot Password" feature to reset your password.


All times are UTC - 5 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 141 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next
Author Message
 Post subject:
PostPosted: Tue Nov 15, 2005 2:53 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Sit tight guys, I will implment as a core functionality. Don't get too excited. The code looks like it nees some more work. Ok.

Larry

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 3:31 pm 
Offline

Joined: Mon Nov 07, 2005 11:21 pm
Posts: 41
TheWitness wrote:
Sit tight guys, I will implment as a core functionality. Don't get too excited. The code looks like it nees some more work. Ok.

Larry


it does need some extra work...but it would be great to see as part of the core. Will this be part of an upgrade for the 8 release or will it be part of 9 release?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 3:52 pm 
Offline

Joined: Thu Jul 21, 2005 7:39 am
Posts: 11
I modified sql query and added Archive function (if we could call it a function :p)

Last and final update.


Attachments:
rrdclean.zip [2.49 KiB]
Downloaded 1044 times
Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:08 pm 
Offline

Joined: Mon Nov 07, 2005 11:21 pm
Posts: 41
it works wonderfully now. Perfect :)

Thanks. I see where the problem was and thanks for the quick fix.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:11 pm 
Offline

Joined: Thu Jul 21, 2005 7:39 am
Posts: 11
it's not really perfect. The query will only return unknown rrd file. If you delete a graph without deleting data source, the rrd won't be updated but it still "known".


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 4:39 pm 
Offline

Joined: Mon Nov 07, 2005 11:21 pm
Posts: 41
i know it is not perfect...but it is working alot better now.


Top
 Profile  
 
 Post subject: Better
PostPosted: Fri Nov 25, 2005 3:57 am 
Offline

Joined: Wed Nov 02, 2005 9:20 am
Posts: 2
I was made some changes in order to the $files_unused = 0.


Attachments:
rrdclean.zip [2.71 KiB]
Downloaded 789 times
Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 13, 2006 3:17 pm 
Offline
Cacti User

Joined: Wed Sep 28, 2005 1:39 pm
Posts: 495
Obviously I missed this one when it first came out - but I've got it now. As expected, it found a lot of rrd files I no longer use. Unfortunately, it won't delete them and doesn't tell me WHY it won't delete them!

r4_fivemin_1599.rrd Error : unable to delete!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 13, 2006 8:19 pm 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14861
Location: MI, USA
Permissions.

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 14, 2006 9:39 am 
Offline
Cacti User

Joined: Wed Sep 28, 2005 1:39 pm
Posts: 495
Who has to have access? Thats the first thing I checked, and then changed everything in the RRA folder to cactiusers:users.

It is curious that many of those files were originally cactiuser:root - but, regardless, it still won't delete them. I've chmod 666 even...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 14, 2006 10:07 am 
Offline
Cacti User
User avatar

Joined: Wed Jan 14, 2004 3:23 am
Posts: 256
Location: Germany
knoby,

try to assign user/group permission of your apache2 server account to the rra directory and your backup directory if you want use this feature.

For example I use wwwrun as user and www as group and it works.

I only get an error after I have cleaned all files
Code:
Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/cacti/plugins/rrdclean/rrdcleaner.php on line 38
 


but in general it works.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 12:34 pm 
Offline
Cacti User
User avatar

Joined: Tue Jul 12, 2005 8:16 pm
Posts: 246
i have resolved a bug

http://gilles.boulon.free.fr/rrdclean/r ... dified.zip


Attachments:
File comment: bug
bug.JPG
bug.JPG [ 14.94 KiB | Viewed 15243 times ]


Last edited by gilles on Sat Jul 22, 2006 6:21 pm, edited 3 times in total.
Top
 Profile  
 
 Post subject:
PostPosted: Mon May 15, 2006 4:38 am 
Offline
Cacti User
User avatar

Joined: Wed Aug 03, 2005 4:14 am
Posts: 61
Location: Cologne Germany
gilles wrote:
i have resolved a bug


Thanks!

_________________
fear leads to anger, anger leads to hate and dancing leads to sex!


Top
 Profile  
 
 Post subject: rrdcleaner
PostPosted: Sat May 20, 2006 5:17 pm 
Offline

Joined: Fri May 19, 2006 4:49 pm
Posts: 5
no chance to get that thing running. I'm running FC5 and cacti 0.8.6.h.
is there somewhere a procedure what to change and where?

':oops:'

Code:
I got this one to run:

RRDCleaner
12/2004 by berger@hk-net.de

Deletes unused .rrd-files in cactis rrd/ directory
Note: You should know what you are doing!
On errors: Check if the rrd/ dir is writeble by the webserver-user!

Usage:
put rrdcleaner.php in the cacti-root dir.

Beginners:
Delete rrdcleaner.php after usage for security reasons.

Professionals:
To use cactis build in authentication modify the $user_auth_realm_filenames array in
include/config_arrays.php (line 272).

   Add the following line:
   "rrdcleaner.php" => 1

After that, uncomment one of the following lines:
*/

//To use cacti authentication uncomment this:
//include("include/auth.php");

//To use cacti authentication comment this out:
include("include/config.php");
.
.

but it seems pretty old and you added new features.
any help is appreciated

thx


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 29, 2006 5:08 pm 
Offline
Cacti User
User avatar

Joined: Tue Jul 12, 2005 8:16 pm
Posts: 246
a new bug has been found if you use hostinfo plugin

http://gilles.boulon.free.fr/rrdclean/r ... dified.zip


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 141 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 10  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group