rrdCleaner - cleans cactis rrd dir from unused rrd's

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Locked
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sasifras wrote:I have the same problem as dononeil. The records move to the proper "action" table, but never get executed.

Running:
Directory: rrdclean
Version: 0.36
also running Boost 2.0 and Spine (have been running boost 2.0 SVN since I installed rrdclean .36).

To note, this did work at one time, but I've often wondered if the 87K+ rrd files are exceeding the limited of this package when it comes time to delete. Can anyone help me with debugging? I'd like to know how the hooks into the poller actually work (where it is invoked, etc) to see what it is really doing/not doing.
If the rrdcleaner tables GET filled, I do not suppose it would be a cause of a very huge rrd directory. Ours holds about 16k rrd files only and works fine. Which version of PIA are you using? I suspect an issue with the poller_bottom hook that's required to work on the rrdcleaner tables
Reinhard
sasifras
Cacti User
Posts: 58
Joined: Tue Nov 18, 2008 6:57 am

Post by sasifras »

PIA 2.1

Something else that is more than likely worth noting... when I search my existing poller.php for poller_bottom I don't see any function or API call that relates. After looking futher. The poller.php on our 8.7b system is not a stock poller.php, it is an SVN rev 4705 which doesn't reference the poller_bottom API set (api_plugin_hook('poller_bottom'); is missing).

As I think more about what you said, I went back to look and found that this function appears to be introduced by the PIA (makes sense). The poller.php we have on our system is from the SVN of Cacti and thus over-writes all of the PIA changes to the poller.php file (DOH!). Once I put the PIA poller.php back in place - viola, this starts to work again.

Now I need to figure out why we went to the SVN'd poller in the first place - which I honestly can't recall.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, that makes sense. You may want to try to apply the PIA patches for poller.php to the SVN code. Run the patch command using "--dry-run" first
Reinhard
sasifras
Cacti User
Posts: 58
Joined: Tue Nov 18, 2008 6:57 am

Post by sasifras »

After moving to structured paths (8.7d/PIA2.4), this plug-in no longer seems to work properly. I haven't really had the time to investigate to which extent it might be broken, but has anyone else seem similar "broken" behavior or is it just me?

When selecting RRDCleaner, no RRD's are displayed for cleanup (even though we know some exist).

Thanks,

Sasifras
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

That is quite normal. My plugin does not cope with structured path yet.
Will head for a new version, but currently lacking time
Reinhard
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have given Gandolf some assistance here. Please find this link to the updated version.

http://forums.cacti.net/viewtopic.php?t=31272

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Locked

Who is online

Users browsing this forum: No registered users and 1 guest