RRDClean v0.38 - Released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

RRDClean v0.38 - Released

Post by TheWitness »

All,

Helping Gandolf out a bit. Here is a new version. For existing users, it's a pretty simple upgrade. I will be posting in a minute. Here is the ChangeLog.
--- 0.38 ---
feature: Make compatible with rrd structured paths
feature: add a rows selector to the utility
feature: auto-upgrade plugin
feature: change buttons to real ones
feautre: add 'Rescan' option to rebuild tables
info: several miscellaneous fixups
TheWitness
Attachments
rrdclean-0.38-1.tar.gz
(15.89 KiB) Downloaded 1690 times
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?
bigrat
Posts: 13
Joined: Wed Jun 11, 2008 3:12 am

Post by bigrat »

I've just installed rrdclean-0.38, unfortunately I receive many errors below :

03/18/2009 07:30:03 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT plugin_rrdclean_action.id, plugin_rrdclean_action.name, plugin_rrdclean_action.local_data_id, plugin_rrdclean_action.action FROM plugin_rrdclean_action"

There has no plugin_rrdclean_action table in mysql database.

Fedora Core 10 - 2.6.27.12-170.2.5.fc10.i686.PAE
Cacti-0.8.7d
PIA 2.4
Spine-0.8.7c
MySQL 5.0.67

Please kindly help me to fix that

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The table does not exist. You should re-install the plugin.

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It may be easier to simply import the table structure.

mysql cacti < rrdclean.sql

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?
bigrat
Posts: 13
Joined: Wed Jun 11, 2008 3:12 am

Post by bigrat »

Hi TheWitness

Thanks for your quick help.

I reinstalled rrdclean many times, I also received those errors.

I couldn't find rrdclean.sql in rrdclean-0.38-1.tar.gz.

Regards.

Bigrat.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you installed via plugin mgmt good. Global.php bad.

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?
bigrat
Posts: 13
Joined: Wed Jun 11, 2008 3:12 am

Post by bigrat »

Could you send me the file rrdclean.sql ?

Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

How are you installing RRDclean?

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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I reviewed the code. You have to access the UI at least once and press the rescan button. I will make it a bit more convenient for Gandolf, if he does not feel up to it. In the mean time, just access the UI and you should be all set.

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?
bigrat
Posts: 13
Joined: Wed Jun 11, 2008 3:12 am

Post by bigrat »

I just copied rrdclean to plugins directory, modify global.php.
Then, I click "Install" and "Enable" rrdclean in Plugin Management Tab.
Is there anything wrong when I install rrdclean plugin?

Regards,
Bigrat
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Do not add rrdclean to global.php
2) Install and Enable
3) Give yourself rights to the plugin
4) Immediately goto the RRDClean Console Pick to create the table.

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?
patas75
Posts: 2
Joined: Fri Jan 23, 2009 6:34 pm

Post by patas75 »

It looks like structured rra paths aren't working properly. Here is the output I get in the cacti log when I try to archive an rrd.

03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] RRDClean has finished 1 items
03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] 23/219.rrd Error: unable to move to /usr/local/cacti/rra/archive/!
03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] RRDClean is now running on 1 items


I ran the following query found in rrdmove.php:

SELECT plugin_rrdclean_action.id, plugin_rrdclean_action.name, plugin_rrdclean_action.local_data_id, plugin_rrdclean_action.action FROM plugin_rrdclean_action;
+----+------------+---------------+--------+
| id | name | local_data_id | action |
+----+------------+---------------+--------+
| 1 | 23/219.rrd | 0 | 3 |
+----+------------+---------------+--------+


It appears the it is putting the directory as part of the name. When the script tries to move the file is trying to "rename" 23/219.rrd instead of creating the folder and then moving the rrd file.




Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.27-11-server
Web Server - Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
PHP - 5.2.6-2ubuntu4.1
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, ldap, mysql, mysqli, pam_auth, PDO, pdo_mysql, sasl, snmp, xmlrpc, xsl
MySQL - 5.0.67-0ubuntu6
RRDTool - 1.3.6
SNMP - 5.4.1
Plugins
  • Global Plugin Settings (settings - v0.5)
    Host Info (hostinfo - v0.2)
    Network Discovery (discovery - v0.8.5)
    Network Tools (tools - v0.3)
bigrat
Posts: 13
Joined: Wed Jun 11, 2008 3:12 am

Post by bigrat »

I tried as you talked, but the result is same like that
Attachments
cacti_1.JPG
cacti_1.JPG (188.6 KiB) Viewed 18617 times
cacti_2.JPG
cacti_2.JPG (132.56 KiB) Viewed 18617 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

bigrat wrote:I tried as you talked, but the result is same like that
You are missing a table, or the table does not exist.
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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

patas75 wrote:It looks like structured rra paths aren't working properly. Here is the output I get in the cacti log when I try to archive an rrd.

03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] RRDClean has finished 1 items
03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] 23/219.rrd Error: unable to move to /usr/local/cacti/rra/archive/!
03/20/2009 03:05:18 PM - RRDCLEAN: Poller[0] RRDClean is now running on 1 items


I ran the following query found in rrdmove.php:

SELECT plugin_rrdclean_action.id, plugin_rrdclean_action.name, plugin_rrdclean_action.local_data_id, plugin_rrdclean_action.action FROM plugin_rrdclean_action;
+----+------------+---------------+--------+
| id | name | local_data_id | action |
+----+------------+---------------+--------+
| 1 | 23/219.rrd | 0 | 3 |
+----+------------+---------------+--------+


It appears the it is putting the directory as part of the name. When the script tries to move the file is trying to "rename" 23/219.rrd instead of creating the folder and then moving the rrd file.




Cacti Version - 0.8.7d
Plugin Architecture - 2.4
Poller Type - Cactid v
Server Info - Linux 2.6.27-11-server
Web Server - Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
PHP - 5.2.6-2ubuntu4.1
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, gd, ldap, mysql, mysqli, pam_auth, PDO, pdo_mysql, sasl, snmp, xmlrpc, xsl
MySQL - 5.0.67-0ubuntu6
RRDTool - 1.3.6
SNMP - 5.4.1
Plugins
  • Global Plugin Settings (settings - v0.5)
    Host Info (hostinfo - v0.2)
    Network Discovery (discovery - v0.8.5)
    Network Tools (tools - v0.3)
Definately a structured paths bug. Can you please open a bug report at http://bugs.cacti.net and provide sufficient detail in the bug report so that we don't have to look here. You can add a reference to this post if you like though.

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 2 guests