No rra created - rrd tool

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

Moderators: Developers, Moderators

Post Reply
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

No rra created - rrd tool

Post by fentagin »

Hello
I have the following specs
Latest versions of cacti,rrdtool,net-snmp and win2003 Server R2.

The problem likei i understood is that while rrdtool executes the command line to create rra, the rra is not create because of "\" and spaces which are in command.

Code: Select all

F:\rrdtool\rrdtool.exe create \
F:/AppServ/www/cacti/rra/1/33.rrd \
--step 300  \
DS:ping:GAUGE:600:0:5000 \
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:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
How can i resolve that issue?
Sorry for my english :)

ps: i didnt use cacti installation because i have x64 windows.If there is setup for x64 let me know
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I doubt the 'spaces' in the command are your real problem at hand. What makes you think the spaces are the problem?

There is no official x64 cacti installer, due to no official x64 dependency installers/builds...
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

Post by fentagin »

i run:

Code: Select all

F:\rrdtool\rrdtool.exe create F:/AppServ/www/cacti/rra/1/33.rrd --step 300 DS:ping:GAUGE:600:0:5000 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:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 
in one line at cmd and it was created successfully
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Those backslashes are escaping the new lines...

Anyways, having you create the rrd files and cacti cannot, strongly suggests there is a NTFS permission problem with your install.
Make sure cmd.exe, rrdtool directory have read/execute and the \cacti\log, \cacti\rrd\ folders have Modify permissions for the IUSR_, IIS_WPG,
and cacti scheduled task users.
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

Post by fentagin »

While adding permissions i couldnt find any user
IUSR_ or IIS_WPG.

should i add them?
Im using administrator login
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Both of them are standard accounts which are added when IIS is installed on Windows 2003. If your company has renamed them, then it's up to you to figure out what they are now... Basically both the anonymous and process launcher accounts for IIS need read/execute rights to cacti files/folders, etc. plus a few need Modify permissions... it's all documented in my installation guide.
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

Post by fentagin »

i'm using apache :(
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, you didn't state that in the first post. This is why I ask users to post all of their information initially...

Apache obviously doesn't use either of those user accounts I previously listed. It typically runs under the SYSTEM account, which should have access to everything it needs... unless someone has restricted access.

What about your cacti scheduled task user? it have all the correct ntfs permissions on things?
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

Post by fentagin »

Im really sorry for the confusion.I forgot to mentioned.
I checked the permission and were fine.
Both administrator and SYSTEM (administrator is for scheduled task)

I checked another think.
in RRA folder, cacti/rrdtool creates the subfolder for each machine like "1" but it doesnt create the rra file only

Which means that permissions are the problem
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Where did you get rrdtool and what version?

You've made sure the cacti scheduled user (which I guess is Administrator), has Modify rights to files/folders in \cacti\rra\?

Under your account, if you manually run: php <cactipath>\poller.php does rrd files get created?
fentagin
Posts: 6
Joined: Wed May 31, 2006 9:16 pm

Post by fentagin »

i have this version
http://oss.oetiker.ch/rrdtool/pub/contr ... -Setup.zip

i downloaded from there.

Permissions are ok
When i run poller with comd "php.exe poller.php" the RRA's are created successfuly but i dont have image graph.On debugging of the Graph magement there is:

Code: Select all

F:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="MSSQL - Database - Used Space - Virtual Memory" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="F\:/AppServ/www/cacti/rra/1/40.rrd":hdd_total:AVERAGE \
DEF:b="F\:/AppServ/www/cacti/rra/1/40.rrd":hdd_used:AVERAGE \
AREA:a#002A97FF:"Total"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#F51D30FF:"Used"  \
GPRINT:b:LAST:" Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:
No image, no result are "RRD tool says"
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I would suggest you use the rrdtool versions from http://www.gknw.net/mirror/rrdtool/
fentagin wrote:When i run poller with comd "php.exe poller.php" the RRA's are created successfuly
...
No image, no result are "RRD tool says"
Both of these statements are a sign that NTFS permissions are NOT set correctly.
1) your cacti scheduled user account does not have the correct NTFS permissions to create/modify files/folders in \cacti\log and \cacti\rra\.
2) the RRD tool says <blank> is a sign that the permissions on CMD.exe and/or the rrdtool directory are not set correctly for the web server account. Make sure whatever account apache is running under, has read/execute permissions on those files.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests