|
|
| Author |
Message |
wsasser
Joined: 31 Jul 2008 Posts: 6
|
Posted: Fri Aug 01, 2008 4:21 pm Post subject: rrd File not found: No such file or directory |
|
|
This was from a template for temperature on a Dell. The error is at the bottom.
| Code: | /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. |
|
| Back to top |
|
 |
arevelo
Joined: 07 Aug 2008 Posts: 6 Location: ecuador
|
Posted: Sat Aug 09, 2008 11:47 am Post subject: same problem |
|
|
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 |
|
| Back to top |
|
 |
dus001
Joined: 07 Aug 2005 Posts: 37
|
Posted: Sat Aug 09, 2008 12:01 pm Post subject: Re: same problem |
|
|
| 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 ? |
|
| Back to top |
|
 |
arevelo
Joined: 07 Aug 2008 Posts: 6 Location: ecuador
|
Posted: Sat Aug 09, 2008 12:10 pm Post subject: help |
|
|
| I have already put chmod 777 to rra/ and log/ |
|
| Back to top |
|
 |
|