graphs dont show up
Moderators: Developers, Moderators
I installed Cacti on a mandrake linux 8.0 rrdtool 1.0.33, php 4.0.4pl1, mysql 3.23.36.I read all the documentation provided with the tarball and I have a very big problem.The graph function is not working properly - no graphics generated.The rra database is updating properly, everything is the way it should be.I worked before with rrdtool (bash scripts to plot snmp variables ) and I know how rrdtool works.Yet my php skills suck and i need your advice.If i try to look at the source (below the graph, there is no graphical function of rrd (area,line,etc).There also is a warning there : Warning: Supplied argument is not a valid MySQL result resource in include/rrd_functions.php on line 224.
have you run the sql script? seems that you've got a problem with mysql
On 2002-02-14 07:14, Anonymous wrote:
I installed Cacti on a mandrake linux 8.0 rrdtool 1.0.33, php 4.0.4pl1, mysql 3.23.36.I read all the documentation provided with the tarball and I have a very big problem.The graph function is not working properly - no graphics generated.The rra database is updating properly, everything is the way it should be.I worked before with rrdtool (bash scripts to plot snmp variables ) and I know how rrdtool works.Yet my php skills suck and i need your advice.If i try to look at the source (below the graph, there is no graphical function of rrd (area,line,etc).There also is a warning there : Warning: Supplied argument is not a valid MySQL result resource in include/rrd_functions.php on line 224.
Try and download this patch:
http://www.raxnet.net/downloads/patches ... ns.php.txt
Replace your current 'rrd_functions.php' and cacti should print out the SQL that is failing. Go ahead and paste that here, and we'll see what is wrong.
-Ian
http://www.raxnet.net/downloads/patches ... ns.php.txt
Replace your current 'rrd_functions.php' and cacti should print out the SQL that is failing. Go ahead and paste that here, and we'll see what is wrong.
-Ian
I replaced the file
This is the output:
select i.id as iid, i.cdefid, i.textformat, i.value, i.hardreturn, i.consolidationfunction, c.hex, d.dsname, d.name as dname, d.id, cf.name as cname, t.name as tname from rrd_graph_item i left join rrd_ds d on i.dsid=d.id left join def_colors c on i.colorid=c.id left join def_graph_type t on i.graphtypeid=t.id left join def_cf cf on i.consolidationfunction=cf.id where i.graphid=53 and !(cf.id != 1 and (t.name="LINE1" or t.name="AREA" or t.name="STACK" or t.name="LINE2" or t.name="LINE3")) order by i.sequence
This is the output:
select i.id as iid, i.cdefid, i.textformat, i.value, i.hardreturn, i.consolidationfunction, c.hex, d.dsname, d.name as dname, d.id, cf.name as cname, t.name as tname from rrd_graph_item i left join rrd_ds d on i.dsid=d.id left join def_colors c on i.colorid=c.id left join def_graph_type t on i.graphtypeid=t.id left join def_cf cf on i.consolidationfunction=cf.id where i.graphid=53 and !(cf.id != 1 and (t.name="LINE1" or t.name="AREA" or t.name="STACK" or t.name="LINE2" or t.name="LINE3")) order by i.sequence
Who is online
Users browsing this forum: No registered users and 1 guest