|
|
| Author |
Message |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Mon Oct 22, 2007 3:04 am Post subject: |
|
|
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
|
Posted: Sat Nov 03, 2007 7:03 am Post subject: |
|
|
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
| Description: |
|
 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
|
Posted: Tue Nov 06, 2007 10:05 am Post subject: |
|
|
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
|
Posted: Tue Nov 06, 2007 10:45 am Post subject: |
|
|
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
|
Posted: Mon Nov 12, 2007 11:19 am Post subject: |
|
|
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
|
Posted: Mon Nov 12, 2007 4:17 pm Post subject: |
|
|
| 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
|
Posted: Mon Nov 12, 2007 4:19 pm Post subject: |
|
|
| 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.
|
Posted: Mon Nov 19, 2007 10:56 am Post subject: |
|
|
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
|
Posted: Mon Nov 19, 2007 11:03 am Post subject: |
|
|
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
|
Posted: Mon Nov 19, 2007 11:07 am Post subject: |
|
|
| 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.
|
Posted: Tue Nov 20, 2007 2:36 am Post subject: |
|
|
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
|
Posted: Tue Nov 20, 2007 3:23 am Post subject: |
|
|
| 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.
|
Posted: Tue Nov 20, 2007 3:42 am Post subject: |
|
|
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
|
Posted: Tue Nov 20, 2007 5:38 am Post subject: |
|
|
| I can confirm that this also works for me.
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Tue Nov 20, 2007 9:45 am Post subject: |
|
|
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 |
|
 |
|