poller writing to wrong rra and log directories

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
wfaulk
Posts: 4
Joined: Tue Dec 02, 2008 5:09 pm

poller writing to wrong rra and log directories

Post by wfaulk »

I just upgraded to 0.8.7d. I then realized that I forgot to apply the plugin architecture patch, so I created a new directory named cacti-0.8.7d-PA, applied the patch, then moved my cacti symlink from cacti-0.8.7d to cacti-0.8.7d-PA. Then I noticed that my RRAs weren't getting updated.

After a lot of searching, I found that the ones in the old cacti-0.8.7d/rra directory were getting upgraded. I verified that the correct poller.php was running, and found that while it was reading its config from the cacti-0.8.7d-PA directory, it was writing its RRA output to the cacti-0.8.7d directory. I also just found that the log file is still being written to (and read from) the cacti-0.8.7b directory that I just upgraded from. God knows where that is coming from. The database, maybe?

Actually, I just looked and found that it's all coming from the database. Maybe there shouldn't be a full path like that in the database, but only a relative path? For now, I've workarounded by renaming my directories, and not deleting my old logfile, but this should probably be fixed.

Also, while researching this, I found that include/global.php contains the line:

Code: Select all

$config["cacti_version"] = "0.8.7c";
which is probably not what you want.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This would appear to be 100% operator error. You need to take care when moving things around and take note that config.php should only have your database information in it. All other information is maintained in the global.php file.

If you upgraded from 0.8.6 to 0.8.7, you may have made this mistake. Sorry we could not have made that more clear for you.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests