RRDTool Error: rrd: No such file or directory

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
drinix
Posts: 5
Joined: Wed Apr 22, 2009 12:26 am

RRDTool Error: rrd: No such file or directory

Post by drinix »

Hello there,

Ever since upgrading to 0.87d, I cannot create new graphs, however graphs created with the old version of Cacti are normally updated every 5 minutes.

I applied the patchs (http://www.cacti.net/downloads/patches/ ... tched/lib/). Restarted the server.

Ran the following cli:

poller_reindex_hosts.php
rebuild_poller_cache.php
repair_database.php

No luck!

If choosing Select a graph type: In\Out bits - a Red X appears on the graph, however if you choose Unicast Packet it seems to create the graph.

Operating System: Windows Server 2k3, SP2, 64bit
Webserver: Apache2.2
Cacti: 0.87d
Spine:
MySQL: 5.0.51a
PHP: 5.2.6
RRDTool (Cygwin or Win32 version): 1.2.x
Net-SNMP: 5.4.2
Cygwin (cygwin1.dll version):
Plugin Architecture: 2.4


RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="O_Switch_6 - Traffic - Gi0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/o_switch_6_traffic_in_2994.rrd":traffic_in:AVERAGE \
DEF:b="C\:/Apache2/htdocs/cacti/rra/o_switch_6_traffic_in_2994.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s"
RRDTool Says:

ERROR: opening 'C:/Apache2/htdocs/cacti/rra/o_switch_6_traffic_in_2994.rrd': No such file or directory


Does anybody know how to solve the problem?


Thanks
Attachments
CactiLog.txt
Cacti Logs
(2.97 KiB) Downloaded 130 times
CactiTechSupport.txt
Cacti Tech Support
(21.29 KiB) Downloaded 289 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

My guess would be the NTFS permissions are no longer correct. please read my installation guide and double-check them.
drinix
Posts: 5
Joined: Wed Apr 22, 2009 12:26 am

Post by drinix »

BSOD2600,

I ran Process Monitor and I had no denied messages. It looks that the NTFS permissions are correct.
However, rrdtool.exe complain that it can't find the name, and php.exe says no such file.
Attachments
Picture 3.png
Picture 3.png (46.72 KiB) Viewed 3487 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You've installed the cacti 0.8.7d patches, right?

If you manually run that 'c:/rrdtool/rrdtool.exe create' command from the cacti.log, does it work? if so, ntfs permission problem. if not... well then other issues :P
drinix
Posts: 5
Joined: Wed Apr 22, 2009 12:26 am

Post by drinix »

I have already patched Cacti.

C:\>c:/rrdtool/rrdtool.exe create C:/Apache2/htdocs/cacti/rra/o_switch_6_traffic_in_2994.rrd --step 300

DS:traffic_in:COUNTER:600:0:100000000
DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000
DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:500 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:500 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 RRA:LAST:0.5:1:600 RRA:LAST:0.5:6:700 RRA:LAST:0.5:24:775 RRA:LAST:0.5:288:797

This is the error I get:

ERROR: Duplicate DS name: traffic_in


Something wrong with the Data Template?


Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Yea, that isn't normal because typically there is only one traffic_in and traffic_out per rrd file. Are you using some custom template? This happen for all traffic templates you're creating or just this one?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests