[solved] No rrds created to match data sources

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

Moderators: Developers, Moderators

Post Reply
Dev Null
Posts: 11
Joined: Fri Apr 23, 2010 11:32 am

[solved] No rrds created to match data sources

Post by Dev Null »

0.8.7b

I added a new host, and added it to an existing host template which has 6 graph templates. Then I went to New Graphs and created the graphs from the host template. From there I go to Data Sources, and confirm that appropriate data sources for the 6 graphs appear to have been created. But if I go to Graph Management and pick one of the newly-created graphs, and turn on graph debug mode, it returns a message like:

ERROR: opening '/var/www/html/cacti/rra/mork_apache_bytesperreq_703.rrd': No such file or directory

And in fact it is correct: that is the correct location for an rrd file to have been created for my data source in this installation, and that is the filename that the data source listed in the cacti interface says it is using, but there is no such file. Somehow the file never got created, even though cacti thinks the data source exists. If I turn on the debugging in data sources and manually cut-and-paste the code displayed into a terminal, the file is created just as it should be, and the graph starts working. Nothing in the cacti log from the time appears relevant (there's a lot of background noise from other things we're monitoring, so I didn't want to spam you guys with it all.)

So, any idea why my data source rrds aren't being created? Is there an error I could look for in my host or graph templates?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

rrd files are created during the polling cycle. look in the cacti.log (with debug mode turned on) for the 'rrdtool create' command. If this is getting executed every cycle for the same rrd file, then you have a permission problem.
Dev Null
Posts: 11
Joined: Fri Apr 23, 2010 11:32 am

Post by Dev Null »

Thanks for that; turned out to be a permission problem which I'd missed.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests