Switched to rrdtool 1.4.4, and graphs not showing on web

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

Moderators: Developers, Moderators

Post Reply
User avatar
Cylindric
Cacti User
Posts: 54
Joined: Mon Jul 16, 2007 9:32 am

Switched to rrdtool 1.4.4, and graphs not showing on web

Post by Cylindric »

Hello folks

I'm running a Windows Cacti install, with the following vitals:

OS: Windows 7 x64
Cacti: 0.8.8a
rrdtool: 1.4.4

Everything was working fine with rrdtool 1.2.15, and I thought I'd give 1.4 a go on a test setup. I switched to 1.4.4, and had to upgrade my rrd files too.

Now, when I view a graph on the web, I get a broken image. If I run the same command from the command-line, a chart is generated.

Here's an example command as shown by a graph "debug" screen:

Code: Select all

c:/cacti/rrdtool-1.4.4/rrdtool.exe graph - \
--imgformat=PNG \
--start=1343120587 \
--end=1343142187 \
--title="SQL Data Size" \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
COMMENT:"From 2012/07/24 11\:03\:07 To 2012/07/24 17\:03\:07\c" \
COMMENT:"  \n" \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/Cacti/cacti-0.8.8a/rra/2/22.rrd":"datasize":AVERAGE \
LINE1:a#1F497DFF:"Data size"  \
GPRINT:a:LAST:"Current%8.2lf%s\n" 
And the entry from the log file:

Code: Select all

07/24/2012 05:17:05 PM - WEBLOG: Poller[0] CACTI2RRD: c:/cacti/rrdtool-1.4.4/rrdtool.exe graph -  --imgformat=PNG  --start=1343120587  --end=1343142187  --title="SQL Data Size"  --base=1024  --height=120  --width=500  --alt-autoscale-max  --lower-limit="0"  COMMENT:"From 2012/07/24 11\:03\:07 To 2012/07/24 17\:03\:07\c"  COMMENT:"  \n"  --vertical-label=""  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a="C\:/Cacti/cacti-0.8.8a/rra/2/22.rrd":"datasize":AVERAGE  LINE1:a#1F497DFF:"Data size"   GPRINT:a:LAST:"Current%8.2lf%s\n" 
Interestingly, if I specify a PNG filename on the command-line, it works fine, but if I redirect the output to a file it results in a broken image.

Anyone had any luck with 1.4.4 on Windows?
Attachments
Sample graph
Sample graph
test.png (9.28 KiB) Viewed 3685 times
Server: Windows Server 2008 R2 x64 (running on a VM, 4Gb RAM)
Cacti: 0.8.8a (using cmd, 270 datasources in 145s)
MySQL: 5.5.16, Apache: 2.2.21, PHP: 5.3.16
User avatar
Cylindric
Cacti User
Posts: 54
Joined: Mon Jul 16, 2007 9:32 am

Re: Switched to rrdtool 1.4.4, and graphs not showing on web

Post by Cylindric »

Hmm, seems to be a specific problem with output redirected from RRD to a file, instead of using the direct output.

So this works:

Code: Select all

rrdtool graph output.png {options}
But this doesn't:

Code: Select all

rrdtool graph - {options} > output.png
I've downloaded the 1.4.7 sources and compiled them, and that seems to fix the issue. Not sure how portable this stuff is, but I built it on a Windows 7 x64 machine (with Win32 settings). I've attached them in case it helps anyone else.
Attachments
rrdtool-1.4.7.zip
RRDTool 1.4.7 compiled from source on a Windows 7 x64 machine using VS2010
(2.44 MiB) Downloaded 715 times
Server: Windows Server 2008 R2 x64 (running on a VM, 4Gb RAM)
Cacti: 0.8.8a (using cmd, 270 datasources in 145s)
MySQL: 5.5.16, Apache: 2.2.21, PHP: 5.3.16
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Switched to rrdtool 1.4.4, and graphs not showing on web

Post by BSOD2600 »

The Windows installer comes with a custom compiled rrdtool 1.4.5 binary, which worked. I assume you must've compiled it yourself along with fixing the various win32 errors? Would be helpful if you sent that patch back to Tobias, since he doesn't care about Windows compiling breakages.

Are you sure it's not a NTFS permission issue on rrdtool.exe and/or cmd.exe? The web service account has read/execute on those binaries?
User avatar
Cylindric
Cacti User
Posts: 54
Joined: Mon Jul 16, 2007 9:32 am

Re: Switched to rrdtool 1.4.4, and graphs not showing on web

Post by Cylindric »

Ok I'll try the ones from the installer. I wasn't using that this time as I couldn't in this case.
No fixes to the code, just compiled as is.
Server: Windows Server 2008 R2 x64 (running on a VM, 4Gb RAM)
Cacti: 0.8.8a (using cmd, 270 datasources in 145s)
MySQL: 5.5.16, Apache: 2.2.21, PHP: 5.3.16
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Switched to rrdtool 1.4.4, and graphs not showing on web

Post by BSOD2600 »

Ah, must be the current 1.4.7 branch which has win32 compiling broken (at least the last time I tried in March).

Double-checked the ntfs permissions?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest