rrd File not found: No such file or directory

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

Moderators: Developers, Moderators

Post Reply
wsasser
Posts: 7
Joined: Thu Jul 31, 2008 8:50 am

rrd File not found: No such file or directory

Post by wsasser »

This was from a template for temperature on a Dell. The error is at the bottom.


Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Exporter - Temperature" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Temperature (Celsius)" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/exporter_pege_amb_temp_259.rrd":pege_amb_temp:AVERAGE \
DEF:b="/var/lib/cacti/rra/exporter_pege_cpu1_temp_260.rrd":pege_cpu1_temp:AVERAGE \
DEF:c="/var/lib/cacti/rra/exporter_pege_cpu2_temp_261.rrd":pege_cpu2_temp:AVERAGE \
DEF:d="/var/lib/cacti/rra/exporter_pege_riser_temp_263.rrd":pege_riser_temp:AVERAGE \
DEF:e="/var/lib/cacti/rra/exporter_pege_planar_temp_262.rrd":pege_planar_temp:AVERAGE \
CDEF:cdefa=a,10,/ \
CDEF:cdefe=b,10,/ \
CDEF:cdefi=c,10,/ \
CDEF:cdefbc=d,10,/ \
CDEF:cdefbg=e,10,/ \
LINE1:cdefa#FF0000FF:"Ambient"  \
GPRINT:cdefa:LAST:"Last\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Max\:%8.2lf %s\n"  \
LINE1:cdefe#FF7D00FF:"CPU1"  \
GPRINT:cdefe:LAST:"   Last\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Max\:%8.2lf %s\n"  \
LINE1:cdefi#FF5700FF:"CPU2"  \
GPRINT:cdefi:LAST:"   Last\:%8.2lf %s"  \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Max\:%8.2lf %s\n"  \
LINE1:cdefbc#B90054FF:"Riser"  \
GPRINT:cdefbc:LAST:"  Last\:%8.2lf %s"  \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbc:MAX:"Max\:%8.2lf %s\n"  \
LINE1:cdefbg#FF5576FF:"Planar"  \
GPRINT:cdefbg:LAST:" Last\:%8.2lf %s"  \
GPRINT:cdefbg:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefbg:MAX:"Max\:%8.2lf %s\n" 
RRDTool Says:

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

If you notice the error at the end, you will see the problem. Why do some templates work and others do not.
arevelo
Posts: 6
Joined: Thu Aug 07, 2008 8:09 pm
Location: ecuador

same problem

Post by arevelo »

I found the problem but I don't know how to resolve it. When I create a new graph in cacti on debug mode the last line of rrdtool's commands comes with an extra slash "\" that's the reason why when cacti tries to search rdd file it doesnt find it. If i run the same comands without this "\" from CLI the file is created and cacti shows me the graph.

#rrdtool create \
/opt/lampp/htdocs/cacti/rra/test.rrd \
-s 300 \
DS:escritorio:GAUGE:600:-10:60 \
DS:exterior:GAUGE:600:-10:60 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \ this is extra slash that don't let to create .rrd file
I dont want to create this file manually forever
now the question is : how can i remove this slash from cacti ?

The second questions is
how can I check if my poller.php is working? 'cause i run poller from cli and I don't have any answer It only shows me this:
[root@localhost cacti]# php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

I think this is the reason why my graph doesn't show me any data
dus001
Posts: 42
Joined: Sun Aug 07, 2005 6:07 am

Re: same problem

Post by dus001 »

arevelo wrote:I found the problem (....) rrdtool's commands comes with an extra slash ""
Just to be sure: can it not be that the apache user has not writing rights on /opt/lampp/htdocs/cacti/rra/ ? And that the user you use to run CLI has the rights ?
arevelo
Posts: 6
Joined: Thu Aug 07, 2008 8:09 pm
Location: ecuador

help

Post by arevelo »

I have already put chmod 777 to rra/ and log/
hipster
Posts: 30
Joined: Thu Mar 16, 2006 7:54 am

Re: rrd File not found: No such file or directory

Post by hipster »

Hi,

I know that this is an old post but I'd like to add one note:

The poller does not create the rrd files if the device is disabled. If you have checked all other things (file permissions etc.) you might want to check that also :)
davidsnt
Posts: 1
Joined: Tue Oct 14, 2008 7:39 am

Re: rrd File not found: No such file or directory

Post by davidsnt »

I am also having the same error with the extra slash, was any fixes found for it.

/usr/bin/rrdtool create \
/srv/www/cacti/rra/localhost_users_6.rrd \
--step 300 \
.
.
.
.
.
RRA:MAX:0.5:288:797 \



Please let me know

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

Re: rrd File not found: No such file or directory

Post by gandalf »

This is which version of cacti and which OS?
R.
nahas
Posts: 1
Joined: Wed Feb 13, 2013 4:41 pm

Re: rrd File not found: No such file or directory

Post by nahas »

Same issue, extra \ at the end stopped it from creating the RRD if i run the same command without the extra "\" it works fine.

Ubuntu 12.10

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

Re: rrd File not found: No such file or directory

Post by gandalf »

A screenshot of the graph from graph management, debug mode, please
R.
remis
Posts: 1
Joined: Wed Apr 09, 2014 7:10 am

Re: rrd File not found: No such file or directory

Post by remis »

gandalf wrote:A screenshot of the graph from graph management, debug mode, please
R.
Hello
I have imported an rrd file and database from a 32bits system to 64 bits new system. I use the XML export – import features. ‘’old graph ‘’ are correctly updated on new installation. But I have the same issue for new graph : unable to create rrd files. Even if i start from a cacti template file . I force directory rra to chmod 777 for debugging.: n oimprovement
Here are some snapshot of two graph , on the new system : one is the result of xml import ; second is a nok graph, that I tried to build today.
May be a data source file issue?
Thank’s for your help.
Attachments
2014-04-09 21_47_32-Console -_ Graph Management -_ (Edit).png
2014-04-09 21_47_32-Console -_ Graph Management -_ (Edit).png (30.56 KiB) Viewed 9356 times
OK2014-04-09 22_06_36-Console -_ Graph Management -_ (Edit).png
OK2014-04-09 22_06_36-Console -_ Graph Management -_ (Edit).png (36.98 KiB) Viewed 9356 times
bangolio
Cacti User
Posts: 61
Joined: Sun Nov 24, 2013 5:44 am

Re: rrd File not found: No such file or directory

Post by bangolio »

I think this thread has like 3 different issues that are not necessarily the same.
The symptom is the same - "rrd file not found", but there is more than one cause for that I reckon.
It'd be wise to open a new thread and add more information after following the steps and advice on this page:

http://docs.cacti.net/manual:087:4_help ... #debugging

Good luck!
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests