|
|
| Author |
Message |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12205 Location: Muenster, Germany
|
Posted: Thu Jan 17, 2008 7:59 am Post subject: |
|
|
Unfortunately, your log stops at the important step. The items before are from using the gui. I'm wondering, whether the cacti poller is running as root?
Reinhard
|
|
| Back to top |
|
 |
timi Cacti User
Joined: 09 Nov 2005 Posts: 124 Location: Timisoara, Romania
|
Posted: Thu Jan 17, 2008 5:03 pm Post subject: |
|
|
| yes, the poller is running as root, exactly, for what should I look in the logs ?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12205 Location: Muenster, Germany
|
Posted: Fri Jan 18, 2008 2:24 pm Post subject: |
|
|
Run the poller once on a clean log file in DEBUG mode and grep for RRDCLEAN. That catches everything
Reinhard
|
|
| Back to top |
|
 |
torstentfk Cacti User
Joined: 05 Apr 2005 Posts: 181 Location: Munich, Germany
|
Posted: Fri Jan 25, 2008 4:34 am Post subject: |
|
|
Hi,
made also a debug on the rrdcleaner code: which function is responsible for deleting the files from hard disk? Where is the call of this function?
You mentioned that oen sould NOT use the page-scroll-function because the "poller_delete_table" will be deleted. This is very dangerous for user who are accustomed on the page-number selection on the top of the list.
The reinitialisation of the todo-list table should only be at the end of a poller cyle not at every use of the rrdcleaner plugin page.
Torsten
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12205 Location: Muenster, Germany
|
Posted: Fri Jan 25, 2008 10:08 am Post subject: |
|
|
I use the poller_bottom hook. The function is defined in setup.php
Reinhard
|
|
| Back to top |
|
 |
johnrembo Cacti User
Joined: 24 Apr 2006 Posts: 198
|
Posted: Thu Feb 07, 2008 5:42 am Post subject: |
|
|
i got very suprprised after finding-out that rrdcleaner deletes unused rrd-files but leaves unused data-sources and graphs. That made a hudge mess i my cacti.
I wrote quick and dirty script which finds and removes unused(empty) data-sources and unavailable graphs.
| Description: |
|
 Download |
| Filename: |
garbage_cleaner.php.zip |
| Filesize: |
1.18 KB |
| Downloaded: |
128 Time(s) |
| Description: |
|
 Download |
| Filename: |
garbage_cleaner.php.gz |
| Filesize: |
1.05 KB |
| Downloaded: |
121 Time(s) |
|
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Thu Feb 07, 2008 8:17 am Post subject: |
|
|
Hi
by "unused data-sources", do you mean data sources associated to the "None" host ?
|
|
| Back to top |
|
 |
johnrembo Cacti User
Joined: 24 Apr 2006 Posts: 198
|
Posted: Thu Feb 07, 2008 9:59 am Post subject: |
|
|
| fmangeant wrote: | Hi
by "unused data-sources", do you mean data sources associated to the "None" host ? |
no, I mean data-sources associated with rrd files that have been deleted.
|
|
| Back to top |
|
 |
sizulku Cacti User
Joined: 04 Nov 2002 Posts: 102 Location: ACEH
|
Posted: Thu Feb 07, 2008 11:43 am Post subject: |
|
|
| sory..but how to use it? just copy it to cacti's root directory?
|
|
| Back to top |
|
 |
apperrault Cacti User
Joined: 16 Feb 2007 Posts: 351 Location: Emeryville, CA
|
Posted: Thu Feb 07, 2008 11:55 am Post subject: |
|
|
in looking through the PHP file, it looks to be a new plugin. i havent had a chance to test it out though.
app
|
|
| Back to top |
|
 |
johnrembo Cacti User
Joined: 24 Apr 2006 Posts: 198
|
Posted: Fri Feb 08, 2008 2:39 am Post subject: |
|
|
| sizulku wrote: | | sory..but how to use it? just copy it to cacti's root directory? |
yup...just like that...
ps: make backup of cacti's database before just in case something goes wrong. It should display($debug=true) what data-sources and local_graph_id's were removed.
|
|
| Back to top |
|
 |
johnrembo Cacti User
Joined: 24 Apr 2006 Posts: 198
|
Posted: Fri Feb 08, 2008 2:47 am Post subject: |
|
|
| apperrault wrote: | in looking through the PHP file, it looks to be a new plugin. i havent had a chance to test it out though.
app |
i had such an idea to write a small and simple plugin. but, it is my conviction that rrdcleaner should do that. So, maybe, instead, it would be better to implemet this small code to rrdcleaner itself?
Alternative would be tuning this thing a little bit and the puttingit to cactis "cli" folder.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12205 Location: Muenster, Germany
|
Posted: Fri Feb 08, 2008 8:39 am Post subject: |
|
|
| johnrembo wrote: | | apperrault wrote: | in looking through the PHP file, it looks to be a new plugin. i havent had a chance to test it out though.
app |
i had such an idea to write a small and simple plugin. but, it is my conviction that rrdcleaner should do that. So, maybe, instead, it would be better to implemet this small code to rrdcleaner itself?
Alternative would be tuning this thing a little bit and the puttingit to cactis "cli" folder. | I'd like to integrate this function into the next release. Due to pressing work that has to be completed for 088, I will tackle other issues first this weekend. If time (and my wife) permits, I will create a new rrdcleaner version, then.
Reinhard
|
|
| Back to top |
|
 |
johnrembo Cacti User
Joined: 24 Apr 2006 Posts: 198
|
Posted: Fri Feb 08, 2008 10:00 am Post subject: |
|
|
| gandalf wrote: |
I'd like to integrate this function into the next release. Due to pressing work that has to be completed for 088, I will tackle other issues first this weekend. If time (and my wife) permits, I will create a new rrdcleaner version, then.
Reinhard |
thnx. we'll be waiting for it...
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12205 Location: Muenster, Germany
|
Posted: Fri Feb 22, 2008 2:10 pm Post subject: |
|
|
I've got it fixed. But I want to wait 'til the new PIA 2.0 interface is out (read: documented) to make it work in clean 087b environments.
Reinhard
|
|
| Back to top |
|
 |
|