Bug 781587 - cacti-0.8.7i-2.el5 install directory changed
Summary: cacti-0.8.7i-2.el5 install directory changed
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cacti
Version: el5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-13 19:39 UTC by Karol Perkowski
Modified: 2012-01-13 21:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-13 21:39:40 UTC
Type: ---


Attachments (Terms of Use)

Description Karol Perkowski 2012-01-13 19:39:40 UTC
Description of problem:
The install directory has changed! From /var/www/cacti to /usr/share/cacti, which has broke my setup.

Comment 1 Ken Dreyer 2012-01-13 19:48:41 UTC
Cacti has used %{_datadir}/%{name} (eg /usr/share/cacti) since the RPM was first created in 2006. See http://pkgs.fedoraproject.org/gitweb/?p=cacti.git;a=blob;f=cacti.spec;hb=97f04d33369dd1a9a11f2aef8ef654c226a3e636

Perhaps you migrated from a plain tarball installation? Or maybe you were using another repository's RPM, and EPEL overwrote this?

Comment 2 Karol Perkowski 2012-01-13 20:08:19 UTC
Ok, fair enough. So now how can I fix my RRA directory and everything linked to /var/www/cacti.

Comment 3 Ken Dreyer 2012-01-13 21:39:40 UTC
I'm sorry that your RPMs conflicted, but I'm going to mark this as NOTABUG because it is technically not a bug in EPEL's package. Did this come from another third-party repo? You might want to use "yum-priorities" in the future. EPEL follows Fedora's packaging guidelines, but not all repositories are as strict about following the guidelines.

You're pretty much beyond "supported" territory at this point, but I can try to offer you a few pointers. I've tried moving a tarball installation, but it didn't go well. I ended up just wiping my cacti database and starting from scratch. If you're dead set on migrating, you'll probably want to:

1) move /var/www/cacti/rra/* to /var/lib/cacti/rra

2) Log into your cacti web console as an admin, and under "Configuration", "Settings" -> "Paths" tab, ensure that the paths are all correct, and none of them refer to /var/www/cacti anymore. In particular the log file should now be /usr/share/cacti/log/cacti.log (or /var/log/cacti/cacti.log, it doesn't matter because they're symlinks.)

3) There's probably more paths that you'll need to change in the MySQL "settings" table. Looking at my install I see "/usr/share/cacti" is stored at "path_webroot", and there may be more like that, I don't know.

Don't take my word for it. You may find more help by Googling "move cacti" or something.


Note You need to log in before you can comment on or make changes to this bug.