rrdCleaner - cleans cactis rrd dir from unused rrd's

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

cigamit wrote: The realm settings were slightly off, causing the link to not show.
right! i didn't see it. I'm writing other plugins. One of them has the same realm 'id', so it worked for me =)

cigamit wrote: I also changed it to show the moved / deleted items in a nicer table at the top. I even did some simple code cleaning :)

Let me know how its works for you.
Thanks for cleaning code (i love blank line:p). Everything seems ok
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

I thought the whole idea behind this was to list rrd graphs that are not being used anymore by the program. Instead it just list them all....can it be configured to only list ones that are not being used? I made the mistake of accidently deleting everything....(glade it was a test server)
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

Could you give us some information about your configuration ? (os, cacti version,etc..)

Anyway, it needs more functionnality. Let me some couple of hours :p
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

cacti 0.8.6g with the plugin....

Windows XP (will soon be moved over to 2000 when i get everything sqaured away)

Apache 2.x

PHP 4.x (latested available download)

RRD Cleaner in theory should just display unused rrd file instead of currently used RRD files. But it doesnt.
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

is cacti poller active on this test server ?
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

problem relys on this line:

Code: Select all

	if (sizeof($files_unused) > 0) {
Problem is if the file is greater then 0 it will show up. But the problem is...some files might be no greater then 0. It has to go on what is not being used. I dont think this is a sufficent way of going about things.

I think you should place in last modified date. What date would you like to have it represent as the first date and then have the program look backwards.

Just an idea.
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

Tut` wrote:is cacti poller active on this test server ?
yes
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

spignataro wrote:problem relys on this line:

Code: Select all

	if (sizeof($files_unused) > 0) {
Problem is if the file is greater then 0 it will show up. But the problem is...some files might be no greater then 0. It has to go on what is not being used. I dont think this is a sufficent way of going about things.
This line test if there is some files to show (size of an array) not the file size).
And rrds can't have a null size.
spignataro wrote: I think you should place in last modified date. What date would you like to have it represent as the first date and then have the program look backwards.
Just an idea.
it's an option, it will be available within the next version.
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

spignataro wrote:
Tut` wrote:is cacti poller active on this test server ?
yes

I didn't test it on windows, i'll do it
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

yeah it isnt behaving as it should.

Very odd if you ask me.
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

backup feature is not a good idea....a back up is a copy of an item...not a complete move of an item. So you want to make it copy....not do a complete move.
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

spignataro wrote:yeah it isnt behaving as it should.
it does on my platform =)
Tut`
Posts: 11
Joined: Thu Jul 21, 2005 7:39 am

Post by Tut` »

spignataro wrote:backup feature is not a good idea....a back up is a copy of an item...not a complete move of an item. So you want to make it copy....not do a complete move.

you're right. i 'll add "Archive" option
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

Tut` wrote:
spignataro wrote:yeah it isnt behaving as it should.
it does on my platform =)
which platform?
spignataro
Posts: 41
Joined: Mon Nov 07, 2005 11:21 pm

Post by spignataro »

Tut` wrote:
spignataro wrote:backup feature is not a good idea....a back up is a copy of an item...not a complete move of an item. So you want to make it copy....not do a complete move.

you're right. i 'll add "Archive" option
awsome...good idea
Locked

Who is online

Users browsing this forum: No registered users and 0 guests