|
|
| Author |
Message |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Tue Nov 20, 2007 9:51 am Post subject: |
|
|
| apperrault wrote: | | I am running the plugin version from the SVN, which appears to have been updated yesterday. |
I can't find it... Can you tell me where it is ?
Thanks in advance
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Tue Nov 20, 2007 10:47 am Post subject: |
|
|
I use Tortoise to browse the SVN located here:svn://cvs.cacti.net/var/svnroot/cacti_plugins and i am using the rrdclean that is at version 166.
I just updated to 0.8.7a and PIA 1.4, I will let you know how that goes.
app
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Tue Nov 20, 2007 11:05 am Post subject: |
|
|
I got it to WORK!!!!!!!!!!!!!! There was a mis-spelling in the rrdmove.php file. Look at line 15, it should read | Code: | | include("./include/global.php"); | there was a typo and it used to read glocal.php
Once i corrected the spelling, the errors are gone!!!
yippee
time to start cleaning out the old RRD files
app
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Nov 20, 2007 11:47 pm Post subject: |
|
|
Yea, fixed it in SVN.
TheWitness
|
|
| Back to top |
|
 |
tojoe
Joined: 24 Nov 2007 Posts: 1
|
Posted: Sat Nov 24, 2007 2:14 pm Post subject: |
|
|
Found another typo in rrdmove.php:
| Code: | /* determine the location of the RRA files */
if (isset($config["path_rra"])) {
$rra_path = $config["rra_path"]; |
Shouldnt that read "rra_path" both times?
|
|
| Back to top |
|
 |
RCK
Joined: 26 Jan 2007 Posts: 40
|
Posted: Wed Jan 09, 2008 6:30 pm Post subject: |
|
|
Could someone post one tar.gz snapshot of the current rrdcleaner SVN ?
Many thanks
Last edited by RCK on Fri Jan 11, 2008 5:55 am; edited 1 time in total |
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
|
| Back to top |
|
 |
RCK
Joined: 26 Jan 2007 Posts: 40
|
Posted: Thu Jan 10, 2008 5:41 pm Post subject: |
|
|
perfect, thanks again
Last edited by RCK on Fri Jan 11, 2008 5:55 am; edited 1 time in total |
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 124 Location: Timisoara, Romania
|
Posted: Fri Jan 11, 2008 4:13 am Post subject: |
|
|
| it does not delete the files with 0.8.7a&PA1.4 ...
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Mon Jan 14, 2008 12:36 pm Post subject: |
|
|
| timi wrote: | | it does not delete the files with 0.8.7a&PA1.4 ... | Even if using the tar provided by fmangeant? Any error in the cacti.log?
Reinhard
|
|
| Back to top |
|
 |
RCK
Joined: 26 Jan 2007 Posts: 40
|
Posted: Mon Jan 14, 2008 6:47 pm Post subject: |
|
|
| timi wrote: | | it does not delete the files with 0.8.7a&PA1.4 ... |
| gandalf wrote: | | timi wrote: | | it does not delete the files with 0.8.7a&PA1.4 ... | Even if using the tar provided by fmangeant? Any error in the cacti.log?
Reinhard |
Hello gandalf,
First I would like to thank you to have upgraded RRDCLEANER to a nice plugins
I got the same problem than timi, fresh cacti 0.8.7a+PA1.4 install, with the rrdclean-svn-175.zip plugin, without any error in cacti.log.
edit: I found the problem ! I did not wait the cron job to do his job :p
edit2: or not
|
|
| Back to top |
|
 |
RCK
Joined: 26 Jan 2007 Posts: 40
|
Posted: Wed Jan 16, 2008 4:04 pm Post subject: 0.8.7a + PA 1.4 |
|
|
I don't understand why, but it only work one time for me
How can I debug the process ? it should delete the files at the next call of poller.php, so where does it store the files to be deleted ?
The only message I see in the logs was when it works.
Thanks for any help.
edit: ok, I found the plugin_rrdclean_action and plugin_rrdclean tables. I will track what happens there.
|
|
| Back to top |
|
 |
RCK
Joined: 26 Jan 2007 Posts: 40
|
Posted: Wed Jan 16, 2008 4:33 pm Post subject: |
|
|
Ok I found why !
RRDCLEANER does not work when the RRA folder is a symbolic link and not a real folder.
I don't understand why it doesn't work, as a symbolic linked folder on a ext3 filesystem should be transparent for php. Any idea ?
Last edited by RCK on Wed Jan 16, 2008 6:29 pm; edited 1 time in total |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12206 Location: Muenster, Germany
|
Posted: Wed Jan 16, 2008 4:54 pm Post subject: Re: 0.8.7a + PA 1.4 |
|
|
| RCK wrote: | | edit: ok, I found the plugin_rrdclean_action and plugin_rrdclean tables. I will track what happens there. | Good to know.
In priciple, it will add all rrd's to the action table that were selected when you press "delete". Please do NOT scroll to next page, because checked rrd's are unchecked when scrolling.
As actions are performed by the poller, you will have to wait until next polling cycle has finished. There are some nice cacti.log messages, more logging is done when increasing logging verbosity.
Reinhard
|
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 124 Location: Timisoara, Romania
|
Posted: Thu Jan 17, 2008 3:07 am Post subject: |
|
|
| gandalf wrote: | | timi wrote: | | it does not delete the files with 0.8.7a&PA1.4 ... | Even if using the tar provided by fmangeant? Any error in the cacti.log?
Reinhard |
even with that tar, it detects correctly the rrd to be deleted...
some lines from debug, there is nothing wrong with that i think
01/17/2008 10:03:13 AM - RRDCLEAN: Poller[0] function: rrdclean_fill_table called
01/17/2008 10:03:13 AM - RRDCLEAN: Poller[0] function: rrdclean_delete_table:
01/17/2008 10:03:13 AM - RRDCLEAN: Poller[0] function: rrdclean_create_table:
01/17/2008 10:03:13 AM - RRDCLEAN: Poller[0] function: get_files: 01/17/2008 10:03:14 AM - RRDCLEAN: Poller[0] insert into plugin_rrdclean: localhost_time_6031.rrd
01/17/2008 10:03:14 AM - RRDCLEAN: Poller[0] function: list_rrd:
01/17/2008 10:03:48 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT plugin_rrdclean.name, plugin_rrdclean.last_mod, plugin_rrdclean.size FROM (plugin_rrdclean) where (plugin_rrdclean.name like '%%%%') ORDER BY name ASC LIMIT 0,300"
01/17/2008 10:03:48 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT ROUND(SUM(plugin_rrdclean.size),2) FROM plugin_rrdclean where (plugin_rrdclean.name like '%%%%')"
01/17/2008 10:03:48 AM - CMDPHP: Poller[0] DEBUG: SQL Cell: "SELECT COUNT(plugin_rrdclean.name) FROM plugin_rrdclean where (plugin_rrdclean.name like '%%%%')"
01/17/2008 10:03:48 AM - RRDCLEAN: Poller[0] function: list_rrd:
01/17/2008 10:03:48 AM - RRDCLEAN: Poller[0] delete from plugin_rrdclean: localhost_time_6031.rrd
01/17/2008 10:03:48 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "DELETE FROM `plugin_rrdclean` WHERE name = 'localhost_time_6031.rrd'"
01/17/2008 10:03:48 AM - RRDCLEAN: Poller[0] insert into plugin_rrdclean_action: localhost_time_6031.rrd
01/17/2008 10:03:48 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "INSERT INTO `plugin_rrdclean_action` VALUES('localhost_time_6031.rrd', 1)"
01/17/2008 10:03:48 AM - RRDCLEAN: Poller[0] function: do_rrd:
01/17/2008 10:03:48 AM - RRDCLEAN: Poller[0] function: rrdclean_main: actions
and the file permsion
-rw-rw-rw- 1 root root 111208 2008-01-14 15:37 localhost_time_6031.rrd
|
|
| Back to top |
|
 |
|