Trouble creating graphs with cacti/rrdtool

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

Moderators: Developers, Moderators

Post Reply
Guest

Trouble creating graphs with cacti/rrdtool

Post by Guest »

All other aspects of Cacti seem to be working accept for the generation / display of the graphs.

If I select Graphs/Edit Graph Items and turn on the Preview mode I see this message:

Warning: popen(d:/stats/rrdtool/rrdtool.exe graph - --imgformat=PNG --start="-86400" --title="Traffic Analysis for web01-ohr_External" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --vertical-label="Bytes Per Second" DEF:a="d\:/inetpub/wwwroot/cacti/rra/web01-ohr_external_in.rrd":web01-ohr_external_:AVERAGE DEF:b="d\:/inetpub/wwwroot/cacti/rra/web01-ohr_external_out.rrd":web01-ohr_external_:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s" 2>&1,r) [function.popen]: No error in d:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 56

Warning: fgets(): supplied argument is not a valid stream resource in d:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 70


If I try to run the above rrdtool command via the cli I get:

ERROR: can't parse DEF 'a=d\:/inetpub/wwwroot/cacti/rra/platinum_external_in.rrd:
platinum_external_i:AVERAGE' -2

The DEF parts where it says d\:/ looks off, but that is what cacti creates.

If I look at the graph display tree, all graphs show as broken images.

I ran cmd.php at the cli and it looks like it works - the rrd files exists for the items I am trying to graph.

Any ideas? This I beleive is the last hurdle to getting Cacti 0.6.8a to work correctly on Win2K for me.
Guest

Post by Guest »

... meant to be logged in when I posted that... :)
mri96

Re: Trouble creating graphs with cacti/rrdtool

Post by mri96 »

I've the same problem.

What solution do you have?

Thanks for your answer
Anonymous wrote:All other aspects of Cacti seem to be working accept for the generation / display of the graphs.

If I select Graphs/Edit Graph Items and turn on the Preview mode I see this message:

Warning: popen(d:/stats/rrdtool/rrdtool.exe graph - --imgformat=PNG --start="-86400" --title="Traffic Analysis for web01-ohr_External" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --vertical-label="Bytes Per Second" DEF:a="d\:/inetpub/wwwroot/cacti/rra/web01-ohr_external_in.rrd":web01-ohr_external_:AVERAGE DEF:b="d\:/inetpub/wwwroot/cacti/rra/web01-ohr_external_out.rrd":web01-ohr_external_:AVERAGE AREA:a#00CF00:"Inbound" GPRINT:a:LAST:" Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" LINE1:b#002A97:"Outbound" GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s" 2>&1,r) [function.popen]: No error in d:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 56

Warning: fgets(): supplied argument is not a valid stream resource in d:\inetpub\wwwroot\cacti\include\rrd_functions.php on line 70


If I try to run the above rrdtool command via the cli I get:

ERROR: can't parse DEF 'a=d\:/inetpub/wwwroot/cacti/rra/platinum_external_in.rrd:
platinum_external_i:AVERAGE' -2

The DEF parts where it says d\:/ looks off, but that is what cacti creates.

If I look at the graph display tree, all graphs show as broken images.

I ran cmd.php at the cli and it looks like it works - the rrd files exists for the items I am trying to graph.

Any ideas? This I beleive is the last hurdle to getting Cacti 0.6.8a to work correctly on Win2K for me.
brundle
Posts: 6
Joined: Fri May 09, 2003 1:25 pm
Location: Portland, OR USA
Contact:

Post by brundle »

Haven't found a solution yet - based on the error message it looks like the command line that it builds references the drive partition incorrectly: d\:/inetpub/... - but I am not sure...
-b
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests