rrd's updating, graph exporting, but broken images in tree

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

rrd's updating, graph exporting, but broken images in tree

Post by duckhead »

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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

View your source on the page and see if you can find the error.

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?
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

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.)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I am talking about the exported graphs. Or is that what you were actually doing?

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?
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

sorry about that. Here the exported graphs link:

<td align='center' width='49%'><a href='graph_232.html'><img src='thumb_232.png' border='0' alt='DB01 SunFire v880 -'></a></td>

Those are static files, so they're working fine.
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hey, do you have a good sunfire Template?

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?
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

To be honest, I've not scribbled outside the lines that much yet. Looking forward to though. What are you interested in?

BTW, Solaris SNMP server sucks. Use Net-SNMP, it has a lot more available (Solaris default only has MIB-II) and doesn't crash all the time.
duckhead
Cacti User
Posts: 59
Joined: Wed Oct 20, 2004 7:41 pm

Post by duckhead »

Turns out to be a problem with PHP and iPlanet, involving the ob_start() and ob_end_flush() functions. Commenting them out fixed the problem. One of the web heads around here told me that there was some problem with iPlanet taking a non standard buffer size, so that's probably what hit me.
cbutler
Posts: 5
Joined: Fri Jan 21, 2005 5:27 pm

same problem, different situation

Post by cbutler »

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

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'>
but the same graph on the working page full of graphs looked like

Code: Select all

<img src='graph_image.php?\
   local_graph_id=79&rra_id=1' \
   border='0' alt='Beverly Weather'>
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
Image

Working graph:
Image[/img]
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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
Now, try and view the following image:

Code: Select all

graph_image.php?local_graph_id=79&rra_id=0
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
cbutler
Posts: 5
Joined: Fri Jan 21, 2005 5:27 pm

Post by cbutler »

raX 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
That worked. Here is the debug output

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" 
The graph appeared correctly underneath the debug code.
Now, try and view the following image:

Code: Select all

graph_image.php?local_graph_id=79&rra_id=0
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.
That also worked just fine.
Lastly, have you changed your RRA settings at all from the defaults?
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.


Thanks,
Christopher
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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
-Ian
cbutler
Posts: 5
Joined: Fri Jan 21, 2005 5:27 pm

Post by cbutler »

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
Did not produce a graph. Here's the debug output:

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" 
Thanks for the quick replies!
Christopher
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

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.

Code: Select all

graph_image.php?local_graph_id=79&rra_id=1&view_type=&graph_start=1107148977&graph_end=1107235377
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests