RRD file not being created

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
ler
Posts: 3
Joined: Thu Apr 11, 2013 9:30 pm

RRD file not being created

Post by ler »

I created a graph and when I look at the debug info under RDDTool Says:

ERROR: opening '/var/lib/cacti/rra/sw10_-_orca_traffic_in_174.rrd': No such file or directory

I have graphs that work for this and other switches.

For this graph I duplicated a data template and made some changes so it would poll every 30 seconds. I want to use this template on occasion for finding out how much bandwidth some applications use; so I don't want to modify the default template.

I made the following changes to the Interface - Traffic template:
Step: 30
Heartbeat: 60 for both traffic in and out

Debug on the data source shows no errors.

But I get the (ERROR: opening '/var/lib/cacti/rra/sw10_-_orca_traffic_in_174.rrd': No such file or directory) error when I create a new graph.

I tried searching but came up empty.

Any idea as to what the problem is? I suspect I just missed something since I'm new to cacti.

Thanks,
Larry
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: RRD file not being created

Post by paulgevers »

Please confirm that adding an other graph works as expected, e.g. confirm that this is not a privileges issue.

Did you follow the debugging guideline, and what were your findings?

What information do you get when you click on the wrench in the graph window? Did you wait at least 10 minutes for cacti to create the rrd?
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
ler
Posts: 3
Joined: Thu Apr 11, 2013 9:30 pm

Re: RRD file not being created

Post by ler »

I can add another graph if I do it in device management. The problem seems to be adding another data source, when I do this the rrd file isn’t saved, in some cases I've waited over 30 minutes. I checked the permissions and www-data has rwx, although x isn’t needed according to the debug guidelines. I’m trying to duplicate a data source and have it use the 30 sec data template. I wanted the use the 30 sec data source/graph when needed and keep 5 minute data source/graph running. So far it looks like there can be only one data source/graph for each switch interface.

I was able to change the data source to the 30 sec data template and the debug for the graph shows –-end=-30 so I guess it is polling every 30 sec. I now get NaN’s in the exported data file. I will have to look into the NaN values on Monday. When I export the data from the graph I still get data at 5 minute intervals. Is there a way to get the 30 second data?

Thanks,
paulgevers
Cacti Pro User
Posts: 613
Joined: Tue Aug 29, 2006 4:09 pm
Location: NL

Re: RRD file not being created

Post by paulgevers »

ler wrote:I can add another graph if I do it in device management. The problem seems to be adding another data source, when I do this the rrd file isn’t saved, in some cases I've waited over 30 minutes. I checked the permissions and www-data has rwx, although x isn’t needed according to the debug guidelines.
So at least there is a file creation issue. Please, let us debug this first. Are you running Debian/Ubuntu by any chance (seeing the path)?

My permissions look like (and work as expected):

Code: Select all

paul@wollumbin /var/lib/cacti/rra $ ls -al
total 820
drwxrwx--- 2 root     www-data   4096 mrt 26 20:35 .
drwxr-xr-x 3 root     root       4096 okt 13 11:24 ..
-rw-r--r-- 1 www-data www-data 141640 apr 13 09:00 localhost_load_1min_5.rrd
-rw-r--r-- 1 www-data www-data  47992 apr 13 09:00 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data  47992 apr 13 09:00 localhost_mem_swap_4.rrd
ler wrote:I’m trying to duplicate a data source and have it use the 30 sec data template. I wanted the use the 30 sec data source/graph when needed and keep 5 minute data source/graph running. So far it looks like there can be only one data source/graph for each switch interface.

I was able to change the data source to the 30 sec data template and the debug for the graph shows –-end=-30 so I guess it is polling every 30 sec. I now get NaN’s in the exported data file. I will have to look into the NaN values on Monday. When I export the data from the graph I still get data at 5 minute intervals. Is there a way to get the 30 second data?
My guess, but I don't know the details, is that your poller is running still only once every 5 minutes, so the rest of the data in the rrd will be NaN as never a point was filled. I remember ever seeing that 1 minute polling was the minimum, but I may very well be wrong on that point.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
ler
Posts: 3
Joined: Thu Apr 11, 2013 9:30 pm

Re: RRD file not being created

Post by ler »

So at least there is a file creation issue. Please, let us debug this first. Are you running Debian/Ubuntu by any chance (seeing the path)?
Yes, I'm running Ubuntu 10.04 LTS.

My permissions are:

Code: Select all

:/var/lib/cacti/rra# ls -la | more
total 24188
drwxrwx--- 2 root     www-data  12288 2013-04-12 16:55 .
drwxr-xr-x 3 root     root       4096 2010-12-08 11:30 ..
-rw-r--r-- 1 www-data www-data  56408 2013-04-15 14:49 campus_1_cat_systraf_8.rrd
-rw-r--r-- 1 www-data www-data 221360 2013-04-15 14:45 campus_1_errors_in_100.rrd
-rw-r--r-- 1 www-data www-data 221360 2013-04-15 14:45 campus_1_errors_in_101.rrd
-rw-r--r-- 1 www-data www-data 221360 2013-04-15 14:46 campus_1_errors_in_102.rrd
My guess, but I don't know the details, is that your poller is running still only once every 5 minutes, so the rest of the data in the rrd will be NaN as never a point was filled. I remember ever seeing that 1 minute polling was the minimum, but I may very well be wrong on that point.
According to /var/log/cacti/cacti.log the polling is occurring every 30 seconds. I also ran 'Rebuild Poller Cache'. I still get NaN for data where I have the 30 second data template and all of the exported data is at a five minute interval.

Thanks,
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: RRD file not being created

Post by gandalf »

Please verify, that the rrd file in question is created for a 30 sec polling interval.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests