Graphs not rendering in UI

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

Moderators: Developers, Moderators

Post Reply
laszlo
Posts: 3
Joined: Tue Jan 24, 2006 9:52 am

Graphs not rendering in UI

Post by laszlo »

I'm using:
PHP 5.1.2 - using the isapi module in IIS 5.1
rrdtool 1.2.12 from the cacti.net site
MySQL 5.0.18
Windows XP with SP2
net-snmp 5.2.2

I followed the windows installation instructions, set my RRD_DEFAULT_FONT, MIBDIRS, etc, so no more errors and warnings are being emitted.

I view a graph in debug mode and I get this:

RRDTool Command:

c:/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="us0999web99 - Traffic - 10.0.20.99 (48:50:20:4E:65:)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="c\:/Inetpub/wwwroot/cacti/rra/us0999web99_traffic_in_8.rrd":traffic_in:AVERAGE \
DEF:b="c\:/Inetpub/wwwroot/cacti/rra/us0999web99_traffic_in_8.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:



Warning: popen(c:/cacti/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="us0999web99 - Traffic - 10.0.20.99 (48:50:20:4E:65:)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="c\:/Inetpub/wwwroot/cacti/rra/us0999web99_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="c\:/Inetpub/wwwroot/cacti/rra/us0999web99_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"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#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s" 2>&1,rb) [function.popen]: No error in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 94



Warning: fgets(): supplied argument is not a valid stream resource in c:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117

If i paste that command into a cygwin window and run it with the output redirected to a PNG file I get the correct graph with the fonts and everything working (attached). I tried messing with all the permissions, I even went as far as giving 'Everyone' full control on cmd.exe, the php dir, the cacti dir, etc. After giving access to cmd.exe it started to just hang instead of giving me the errors above.. I'm guessing this is just a permission problem of some sort but I can't figure it out. What are the correct permissions for each item, and what user should I be running the poller.php as?

Thanks in advance,
Laszlo
Attachments
Generated from the commandline with:
<br />
<br />$ c:/cacti/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title=&amp;quot;us0999web99 - Traffic - 10.0.20.99 (48:50:20:4E:65:)&amp;quot; --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lo
Generated from the commandline with:

$ c:/cacti/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title=&quot;us0999web99 - Traffic - 10.0.20.99 (48:50:20:4E:65:)&quot; --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lo
test.png (26.26 KiB) Viewed 1362 times
laszlo
Posts: 3
Joined: Tue Jan 24, 2006 9:52 am

Post by laszlo »

I removed the extra permission I added to cmd.exe and the graphs are now rendering. I'm still curious what the 'proper' settings are though :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The proper settings are that your web user account, typically IIS_USR needs read/execute rights on cmd.exe and rrdtool.exe.
laszlo
Posts: 3
Joined: Tue Jan 24, 2006 9:52 am

Post by laszlo »

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests