rrdCleaner - cleans cactis rrd dir from unused rrd's
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
Larry
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Posts: 41
- Joined: Mon Nov 07, 2005 11:21 pm
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?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
I modified sql query and added Archive function (if we could call it a function :p)
Last and final update.
Last and final update.
- Attachments
-
- rrdclean.zip
- (2.49 KiB) Downloaded 1529 times
-
- Posts: 41
- Joined: Mon Nov 07, 2005 11:21 pm
-
- Posts: 41
- Joined: Mon Nov 07, 2005 11:21 pm
Better
I was made some changes in order to the $files_unused = 0.
- Attachments
-
- rrdclean.zip
- (2.71 KiB) Downloaded 1132 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Permissions.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
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
but in general it works.
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: Select all
Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/cacti/plugins/rrdclean/rrdcleaner.php on line 38
- Attachments
-
- bug
- bug.JPG (14.94 KiB) Viewed 24036 times
Last edited by gilles on Sat Jul 22, 2006 6:21 pm, edited 3 times in total.
rrdcleaner
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:'
but it seems pretty old and you added new features.
any help is appreciated
thx
is there somewhere a procedure what to change and where?
':oops:'
Code: Select all
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");
.
.
any help is appreciated
thx
a new bug has been found if you use hostinfo plugin
http://gilles.boulon.free.fr/rrdclean/r ... dified.zip
http://gilles.boulon.free.fr/rrdclean/r ... dified.zip
Who is online
Users browsing this forum: No registered users and 0 guests