Cannot find Datasource
Moderators: Developers, Moderators
Cannot find Datasource
If I manually run the rrdtool to create the database, cacti works fine, I also have added the correct CDEF's and RRA's and my scheduled cron runs fine, but cacti will not create the rrd databases? Why is this? I am running on FreeBSD, Apache and php 4.2.2
Datasource problem solved
I noticed many people find the solution to this problem but no one posts it:
The solution is the .rrd files are created the next time cmd.php runs, not by the cacti php page, so you will get an error that the .rrd file isnt found but it will go away in the next interval that cmd.php runs.
Doug
The solution is the .rrd files are created the next time cmd.php runs, not by the cacti php page, so you will get an error that the .rrd file isnt found but it will go away in the next interval that cmd.php runs.
Doug
writing RRA files for datasource
Hi
For write rra's archives try this:
- put in root crontab : */5 * * * * php /var/www/html/cacti/cmd.php > /dev/null 2>&1
- change permission to rra and log dir : chown -R apache:apache /path/to/cacti/ , where path is the real path to cacti
- and now wait for crontab execution and check rra directory.
good luck
Svenka
note to rax: hi rax , can you put in cacti manual ? !!
For write rra's archives try this:
- put in root crontab : */5 * * * * php /var/www/html/cacti/cmd.php > /dev/null 2>&1
- change permission to rra and log dir : chown -R apache:apache /path/to/cacti/ , where path is the real path to cacti
- and now wait for crontab execution and check rra directory.
good luck
Svenka
note to rax: hi rax , can you put in cacti manual ? !!
Sure this can be added to the manual. I do have one comment about how you are adding cmd.php to /etc/crontab though. It is usually not a good idea to run this as root, but rather a normal unix user. If cmd.php runs as root, you essentially give anyone with access to data sources root-level access to the machine since they can execute any command as root. It would also make things much worse if cacti was ever exploited.
Just a thought.
-Ian
Just a thought.
-Ian
Who is online
Users browsing this forum: No registered users and 5 guests