rrd's updating, graph exporting, but broken images in tree
Moderators: Developers, Moderators
rrd's updating, graph exporting, but broken images in tree
I've got something really strange. I spent a lot of time configuring Cacti and getting it working on a Linux box, then I built everything on a Solaris box, installed it, and moved the database over. After a few changes to paths, I've gotten poller.php polling correctly and updating the rrd's. I've confirmed that. I've also turned on the graph export and that's exporting the graphs perfectly. I can access those just fine. I cannot, however, view my graphs from the treeview, they're showing as broken links.
My URL for the graphs look like this:
http://localhost/cacti/graph_view.php?a ... first=true
I don't see any problem here, and I can't figure out where to go with the schema.
Any idea where go go from here?
My URL for the graphs look like this:
http://localhost/cacti/graph_view.php?a ... first=true
I don't see any problem here, and I can't figure out where to go with the schema.
Any idea where go go from here?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
View your source on the page and see if you can find the error.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
I don't see any hints there. Here's my link
<a href='graph.php?local_graph_id=28&rra_id=all'><img src='graph_image.php?local_graph_id=28&rra_id=0&view_type=tree&graph_start=1100748428&graph_end=1100834828' border='0' alt='NFS05 Netapp NearStore R150 - Traffic - 10.18.20.37 (e0)'></a>
I can't confess to being a web guy though, is that correct? That's probably a different graph, but it still doesn't display (none of my 200 do.)
<a href='graph.php?local_graph_id=28&rra_id=all'><img src='graph_image.php?local_graph_id=28&rra_id=0&view_type=tree&graph_start=1100748428&graph_end=1100834828' border='0' alt='NFS05 Netapp NearStore R150 - Traffic - 10.18.20.37 (e0)'></a>
I can't confess to being a web guy though, is that correct? That's probably a different graph, but it still doesn't display (none of my 200 do.)
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I am talking about the exported graphs. Or is that what you were actually doing?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
OK, I've spent the entire day today chasing this thing down. I've come to the conclusion that Cacti is working just fine. The graphs are generating correctly. The problem is that iPlanet 6.1 doesn't know what to do with the PNG data that rrdtool_execute passes back through the fpassthru function.
So, this leaves me to spend more time Googling, and possibly calling Sun support. Of course, it anyone has anything else to add, I'm all ears. Thanks for all the help though.
So, this leaves me to spend more time Googling, and possibly calling Sun support. Of course, it anyone has anything else to add, I'm all ears. Thanks for all the help though.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Hey, do you have a good sunfire Template?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
same problem, different situation
I just upgraded from 0.8.6b to 0.8.6c on Fedora Core 2 and started getting this problem. (I also installed the three patches and the problem remains.)
I have FC2, PHP 4.3.10, MySQL 3.23.58, rrdtool 1.1.0. Everything was working fine in 0.8.6b except for the fact that I was trying to graph the weather and getting negatives (it's cold here in Massachusetts) and they weren't showing on the graph.
Anyway, when I click the Graph tab and get the tree view, none of the graphs appear that all show up as broken images. However, if I click a broken graph to get the full set day, week, month, year, all those graphs appear just fine. So, I know my graphs are getting updated, I know the poller is doing it's thing, but there is something about the main view that doesn't want to show the graphs.
I looked at the generated HTML and the only differences I could see were that in the tree view the reference to the graph looked like this
but the same graph on the working page full of graphs looked like
So, the difference seems to be "rra_id=0" vs. "rra_id=1".
Note: The two other views - list & preview exhibit the exact same problems. The graphs appear broken in the initial view, but clicking a broken graph produces working graphs.
Thanks for any help!
Christopher
PS: Here are the pics to demonstrate my problem.
Broken graph
Working graph:
[/img]
I have FC2, PHP 4.3.10, MySQL 3.23.58, rrdtool 1.1.0. Everything was working fine in 0.8.6b except for the fact that I was trying to graph the weather and getting negatives (it's cold here in Massachusetts) and they weren't showing on the graph.
Anyway, when I click the Graph tab and get the tree view, none of the graphs appear that all show up as broken images. However, if I click a broken graph to get the full set day, week, month, year, all those graphs appear just fine. So, I know my graphs are getting updated, I know the poller is doing it's thing, but there is something about the main view that doesn't want to show the graphs.
I looked at the generated HTML and the only differences I could see were that in the tree view the reference to the graph looked like this
Code: Select all
<img src='graph_image.php?\
local_graph_id=79&rra_id=0&view_type=tree&\
graph_start=1106260613&graph_end=1106347013'\
border='0' alt='Beverly Weather'>
Code: Select all
<img src='graph_image.php?\
local_graph_id=79&rra_id=1' \
border='0' alt='Beverly Weather'>
Note: The two other views - list & preview exhibit the exact same problems. The graphs appear broken in the initial view, but clicking a broken graph produces working graphs.
Thanks for any help!
Christopher
PS: Here are the pics to demonstrate my problem.
Broken graph
Working graph:
[/img]
Try going to the following page with the hope that it gives you some debug output.
Now, try and view the following image:
Note how I omitted the "graph_start" and "graph_end" variables in the URL. If the second URL works, then there appears to be a problem with Cacti's auto-RRA selection algorithm. I don't believe this code changed between 0.8.6b and 0.8.6c though.
Lastly, have you changed your RRA settings at all from the defaults?
-Ian
Code: Select all
graph.php?action=properties&local_graph_id=79&rra_id=0
Code: Select all
graph_image.php?local_graph_id=79&rra_id=0
Lastly, have you changed your RRA settings at all from the defaults?
-Ian
That worked. Here is the debug outputraX wrote:Try going to the following page with the hope that it gives you some debug output.Code: Select all
graph.php?action=properties&local_graph_id=79&rra_id=0
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Beverly Weather" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--units-exponent=0 \
--vertical-label="Degrees Fahrenheit" \
DEF:a="/var/www/html/cacti/rra/weatherbug_93.rrd":current_temp:AVERAGE \
DEF:b="/var/www/html/cacti/rra/weatherbug_93.rrd":wind_chill_temp:AVERAGE \
LINE2:a#0000FF:"Current Temp" \
GPRINT:a:LAST:"%8.0lf\n" \
LINE1:b#FF0000:"Wind Chill" \
GPRINT:b:LAST:" %8.0lf"
That also worked just fine.Now, try and view the following image:
Note how I omitted the "graph_start" and "graph_end" variables in the URL. If the second URL works, then there appears to be a problem with Cacti's auto-RRA selection algorithm. I don't believe this code changed between 0.8.6b and 0.8.6c though.Code: Select all
graph_image.php?local_graph_id=79&rra_id=0
Not that I know of (I don't know how so I'm assuming I didn't). I did change one setting on the graph management page - I selected alt-autoscale instead of alt-autoscale-max because with the latter choice, the graphs wouldn't work at all.Lastly, have you changed your RRA settings at all from the defaults?
Thanks,
Christopher
Here's another one to try. Report back if you get some debug output.
-Ian
Code: Select all
graph.php?action=properties&local_graph_id=79&rra_id=0&view_type=&graph_start=1106600790&graph_end=1106687190
Did not produce a graph. Here's the debug output:raX wrote:Here's another one to try. Report back if you get some debug output.
Code: Select all
graph.php?action=properties&local_graph_id=79&rra_id=0&view_type=&graph_start=1106600790&graph_end=1106687190
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1106600790 \
--end=1106687190 \
--title="Beverly Weather" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--units-exponent=0 \
COMMENT:"From Jan/24/2005 16:06:30 To Jan/25/2005 16:06:30\c" \
COMMENT:"\n" \
--vertical-label="Degrees Fahrenheit" \
DEF:a="/var/www/html/cacti/rra/weatherbug_93.rrd":current_temp:AVERAGE \
DEF:b="/var/www/html/cacti/rra/weatherbug_93.rrd":wind_chill_temp:AVERAGE \
LINE2:a#0000FF:"Current Temp" \
GPRINT:a:LAST:"%8.0lf\n" \
LINE1:b#FF0000:"Wind Chill" \
GPRINT:b:LAST:" %8.0lf"
Christopher
Sorry about the delay... haven't had the chance to check my message board replies in a couple of days.
Here is another URL to try. Let me know if the graph renders or not.
Also I noticed you mentioned that you are using RRDTool 1.1. I wasn't aware that this version has been released yet. If you are actually using this version, that may be part of the problem. I would also be curious where you downloaded it for debugging reasons.
-Ian
Here is another URL to try. Let me know if the graph renders or not.
Code: Select all
graph_image.php?local_graph_id=79&rra_id=1&view_type=&graph_start=1107148977&graph_end=1107235377
-Ian
Who is online
Users browsing this forum: No registered users and 0 guests