Hello,
I'm having a baffling issue where Cacti is putting RRD files in the wrong directory. It ONLY does this on the initial creation of the data sources. After the files are created, the poller and the web interface both look for the RRD files in the *correct* place, but can't find them because they were initially created in the *wrong* place. I can not, for the life of me, find this setting that controls where RRD files are initially created.
Any advice?
Thank you.
RRD files in wrong dir
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: RRD files in wrong dir
For 087g, the file include/global.php defines the path to the rra/ directory (at least on unchanged versions of cacti). Please see that part of the code
R.
R.
-
- Posts: 3
- Joined: Tue Aug 31, 2010 11:06 pm
Re: RRD files in wrong dir
Thanks for the reply. I am actually running 0.8.7b
I see this line in global.php:
include/global.php:$config["rra_path"] = $config["base_path"] . '/rra';
which I'm guessing references this line in config.php:
include/config.php:$base_path = "/usr/local/groundwork/apache2/htdocs/cacti";
that would mean that the rra_path is "/usr/local/groundwork/apache2/htdocs/cacti/rra, which IS the correct path, but this is not where Cacti is initially creating the files. It puts them in /var/www/html/cacti (which would normally be the correct place on my centos box). In any case, I've solved the issue with symlinks - which isn't exactly ideal, but it's working for now.
I see this line in global.php:
include/global.php:$config["rra_path"] = $config["base_path"] . '/rra';
which I'm guessing references this line in config.php:
include/config.php:$base_path = "/usr/local/groundwork/apache2/htdocs/cacti";
that would mean that the rra_path is "/usr/local/groundwork/apache2/htdocs/cacti/rra, which IS the correct path, but this is not where Cacti is initially creating the files. It puts them in /var/www/html/cacti (which would normally be the correct place on my centos box). In any case, I've solved the issue with symlinks - which isn't exactly ideal, but it's working for now.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: RRD files in wrong dir
Seems that groundworks changed paths. But why don't you ask on their forum?
R.
R.
Who is online
Users browsing this forum: No registered users and 8 guests