[solved] no graph show in windows xp

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

Moderators: Developers, Moderators

Post Reply
sohusina
Posts: 4
Joined: Mon Nov 12, 2012 8:55 am

[solved] no graph show in windows xp

Post by sohusina »

Operating System: xp
Webserver: apache 2.2.22
Cacti:0.8.8a
Spine:cacti-spine-0.8.8a
MySQL:5.1.51
PHP:5.3.10
RRDTool (Cygwin or Win32 build):RRDtool-1.3.8-win32-ruby1.8-perl5.10
Net-SNMP:net-snmp-5.6.1.1-1.x86
Cygwin (cygwin1.dll version):no
Plugin Architecture:

rrd file :have data
rrdtool graph says: ok
but i have no graph show in ie6 or firefox!
i deep into source code, i find the problem maybe occured in /lib/rrd.php--->
rrdtool_function_graph ,the 811 line :$graph_opts = "-" . RRD_NL; i replace the
" - " into "c:\my.png", i can find picture is c:\my.png,but neither show graph in brosser.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: no graph show in windows xp

Post by BSOD2600 »

post the graph debug output please.
sohusina
Posts: 4
Joined: Mon Nov 12, 2012 8:55 am

Re: no graph show in windows xp

Post by sohusina »

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-120 \
--title="mysql - MySQL Connections" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/cacti/rra/mysql_threads_connected_9.rrd":"max_connections":AVERAGE \
DEF:b="C\:/cacti/rra/mysql_threads_connected_9.rrd":"Max_used_connectins":AVERAGE \
DEF:c="C\:/cacti/rra/mysql_threads_connected_9.rrd":"Aborted_clients":AVERAGE \
DEF:d="C\:/cacti/rra/mysql_threads_connected_9.rrd":"Aborted_connects":AVERAGE \
DEF:e="C\:/cacti/rra/mysql_threads_connected_9.rrd":"Threads_connected":AVERAGE \
DEF:f="C\:/cacti/rra/mysql_threads_connected_9.rrd":"Connections":AVERAGE \
AREA:a#C0C0C0FF:"Max Connections" \
GPRINT:a:LAST:" Cur\:%6.1lf%s\n" \
AREA:b#FFD660FF:"Max Used Connections" \
GPRINT:b:LAST:"Cur\:%6.1lf%s\n" \
LINE1:c#FF3932FF:"Aborted Clients" \
GPRINT:c:LAST:" Cur\:%6.1lf%s" \
GPRINT:c:AVERAGE:"Avg\:%6.1lf%s" \
GPRINT:c:MAX:"Max\:%6.1lf%s\n" \
LINE1:d#00FF00FF:"Aborted Connects" \
GPRINT:d:LAST:" Cur\:%6.1lf%s" \
GPRINT:d:AVERAGE:"Avg\:%6.1lf%s" \
GPRINT:d:MAX:"Max\:%6.1lf%s\n" \
LINE2:e#FF7D00FF:"Threads Connected" \
GPRINT:e:LAST:" Cur\:%6.1lf%s" \
GPRINT:e:AVERAGE:"Avg\:%6.1lf%s" \
GPRINT:e:MAX:"Max\:%6.1lf%s\n" \
LINE1:f#4444FFFF:"Connections" \
GPRINT:f:LAST:" Cur\:%6.1lf%s" \
GPRINT:f:AVERAGE:"Avg\:%6.1lf%s" \
GPRINT:f:MAX:"Max\:%6.1lf%s\n" RRDTool Says:

OK
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: no graph show in windows xp

Post by BSOD2600 »

So that output looks ok. What's the problem again? Are you sure the mysql script is properly running and retrieving data?
sohusina
Posts: 4
Joined: Mon Nov 12, 2012 8:55 am

Re: no graph show in windows xp

Post by sohusina »

my problem is no graph show in browser, but i can get data from mysql.
i deep into source code in /lib/rrd.php--->rrdtool_function_graph ,the 811 line :$graph_opts = "-" . RRD_NL; i replace the " - " into "c:\my.png", i can
find picture is c:\my.png in my disk,but no graph show in browser.
sohusina
Posts: 4
Joined: Mon Nov 12, 2012 8:55 am

Re: no graph show in windows xp

Post by sohusina »

it have been resolved,i replace RRDtool-1.3.8-win32-ruby1.8-perl5.10 into rrdtool-1.2.15-cygwin-1.5.20,so i can look graph.thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest