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    


rrdCleaner - cleans cactis rrd dir from unused rrd's
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon Oct 22, 2007 3:04 am    Post subject: Reply with quote

Hi Reinhard

many thanks for this new version of the plugin. File deletion done by the poller is a great idea !
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12205
Location: Muenster, Germany

PostPosted: Sat Nov 03, 2007 7:03 am    Post subject: Reply with quote

Again, here's a revision with following changes:
Quote:
0.32
tweak: Added some comments to code
bug: Fixed rounding issue for the Totals
bug: Fixed issue when displaying RRDCleaner menu item even if realm not set

Reinhard

BTB: Compatibility with 087 was not yet verified



rrdclean-0.32.tgz
 Description:
New Code

Download
 Filename:  rrdclean-0.32.tgz
 Filesize:  7.1 KB
 Downloaded:  526 Time(s)

Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Tue Nov 06, 2007 10:05 am    Post subject: Reply with quote

Has anyone gotten this new code to work with 0.8.7? It installs just fine, and when i click on the item from the console, it detects the un-used RRD files and allows me to select them for deletion, but the delete does not appear to get called from the poller. I have tried deleting the plugin and re-installing it but that doesnt work. It worked prior to upgrading to 0.8.7, but now it no longer works.

I know that Gandolf said that the functionality had not been verified under 0.8.7, but i was wondering if anyone else had gotten this to work.

thanks

app

p.s. Gandolf, for some reason, even though i have the latest code, Jimmy's update plugin always says that this plugin needs updating. But then again, so does Zond...

app
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Tue Nov 06, 2007 10:45 am    Post subject: Reply with quote

Reinhard,

Did you rely on the poller_commands to accomplish this? If so, we have to patch 0.8.7. We can discuss at Saturday's Conference Call.

Larry
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Mon Nov 12, 2007 11:19 am    Post subject: Reply with quote

Was there any resolution the problem with this plugin and version 0.8.7a?

app
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12205
Location: Muenster, Germany

PostPosted: Mon Nov 12, 2007 4:17 pm    Post subject: Reply with quote

apperrault wrote:
p.s. Gandolf, for some reason, even though i have the latest code, Jimmy's update plugin always says that this plugin needs updating. But then again, so does Zond...

app
Which version is shown? I remember, there once was some 1.x or the like. And that's obviously higher than 0.32. You may delete the appropriate line from the update table to get rid of it
Reinhard
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12205
Location: Muenster, Germany

PostPosted: Mon Nov 12, 2007 4:19 pm    Post subject: Reply with quote

TheWitness wrote:
Reinhard,

Did you rely on the poller_commands to accomplish this? If so, we have to patch 0.8.7. We can discuss at Saturday's Conference Call.

Larry
Sorry for missing this. I'm using the poller_bottom hook. Did not yet find time to even install 087+PIA
BTB: My son's alright by now.
Reinhard
Back to top
Alice
Cacti User


Joined: 28 Oct 2003
Posts: 88
Location: Bucharest, RO.

PostPosted: Mon Nov 19, 2007 10:56 am    Post subject: Reply with quote

just change include("./include/config.php"); with include("./include/global.php"); in rrdmove.php
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Mon Nov 19, 2007 11:03 am    Post subject: Reply with quote

I have that in my rrdmove.php, and the files do not actually get deleted. I believe that Gandolf is working on correcting this problem.

Is there any update on this plugin?

thanks

app
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon Nov 19, 2007 11:07 am    Post subject: Reply with quote

apperrault wrote:
I have that in my rrdmove.php, and the files do not actually get deleted.

Hi

same here with 0.8.7a + PIA 1.4
Back to top
Alice
Cacti User


Joined: 28 Oct 2003
Posts: 88
Location: Bucharest, RO.

PostPosted: Tue Nov 20, 2007 2:36 am    Post subject: Reply with quote

Strange enough, it works for me (0.8.7a. PIA 1.3)

Of course, web server needs rw access to files.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Tue Nov 20, 2007 3:23 am    Post subject: Reply with quote

Alice wrote:
Of course, web server needs rw access to files.

Hi

with Reinhard's plugin, it seems not :
Quote:
file delete is done by the poller
This avoids permission errors or security issues.
The same instance that creates rrd files, the poller,
will be used for deletion as well.

And it used to work with Cacti 0.8.6j + PIA 1.1
Back to top
Alice
Cacti User


Joined: 28 Oct 2003
Posts: 88
Location: Bucharest, RO.

PostPosted: Tue Nov 20, 2007 3:42 am    Post subject: Reply with quote

Yes, I am talking about that version, with global.php instead of config.php, and that's the only mod i've made.

Yes, sorry, I was wrong about the web server permissions.
The user that runs the poller must have RW access to files.

BUT I have PIA 1.3, not 1.4
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Tue Nov 20, 2007 5:38 am    Post subject: Reply with quote

I can confirm that this also works for me.
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Tue Nov 20, 2007 9:45 am    Post subject: Reply with quote

That is so odd. It isn't working for me. I am running the plugin version from the SVN, which appears to have been updated yesterday. I am still running 0.8.7 (patched) and PIA 1.3. I guess i should updated to 0.8.7a and PIA 1.4 and see if i still have problems.

I will let you know

app
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 6 of 9

 



Powered by phpBB © 2001, 2005 phpBB Group