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
Graphs not rendering in UI
Moderators: Developers, Moderators
Graphs not rendering in UI
- Attachments
-
- Generated from the commandline with:
$ 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 --lo - test.png (26.26 KiB) Viewed 1362 times
- Generated from the commandline with:
The proper settings are that your web user account, typically IIS_USR needs read/execute rights on cmd.exe and rrdtool.exe.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 0 guests