<HTML>
<BODY>

<br><font size=2 face="sans-serif">After running the commands as you outlined
below, the output in file.png is:</font>
<br><font size=1 face="Courier New">Content-type: image/png</font>
<br><font size=1 face="Courier New">Expires: Thu, 29 Dec 2005 19:26:06
GMT</font>
<br>
<br><font size=2 face="sans-serif">If I view the file.png file with a png
viewer, it is only a black screen.<br>
<br>
Michael Frey<br>
Intel Senior Systems Engineer<br>
The Guardian Life Insurance Company of America<br>
3900 Burgess Place, 2-West<br>
Bethlehem, PA 18017<br>
E-Mail: Michael_frey@glic.com<br>
Phone: 610-807-7889<br>
Fax: 610-807-6003</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=42%><font size=1 face="sans-serif"><b>henrik@hswn.dk (Henrik
Stoerner)</b></font><font size=1 face="sans-serif"> </font>
<p><font size=1 face="sans-serif">12/28/2005 06:06 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
hobbit@hswn.dk</font></div></table>
<p>
<p>
<td width=57%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">hobbit@hswn.dk</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">Re: [hobbit] Larrd graphs
not working</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Wed, Dec 28, 2005 at 05:06:16PM -0500, James B
Horwath wrote:<br>
> I'm trying to help a coworker debug/fix Hobbit running on Linux 7.2.
I <br>
> know BB pretty well, but I'm just learning Hobbit.  Everything
on the <br>
> Hobbit install works fine, except the larrd historical graphs.  For
<br>
> example at the bottom of machine X's disk page the icon for the larrd
is <br>
> grayed out.  I can click on it and see the next three grayed
out icons <br>
> which should be larrd graphs.<br>
<br>
Since the graph links show up, it sounds like the RRD files are being<br>
created (meaning that the data is being picked up and archived); you<br>
can check if there are any rrd-files in the data/rrd/HOSTNAME/<br>
directories.<br>
<br>
So I think it's a problem with the CGI that generates the actual graph<br>
images. Debugging CGI's are a bit tricky, but:<br>
<br>
- setup the environment variable QUERY_STRING, this is the part of the<br>
  URL for the graph image that follows the '?'. It's done with<br>
  export QUERY_STRING="host=voodoo.hswn.dk&service=conn&graph=hourly&action=view"<br>
  (replace the hostname with what your host is called).<br>
- also setup<br>
    export REQUEST_METHOD=GET<br>
    export REQUEST_URI=""<br>
- run "~hobbit/cgi-bin/hobbitgraph.sh >/tmp/file.png"<br>
<br>
Look at the output in /tmp/file.png. Any errors there ?<br>
<br>
A common problem is that the rrdtool run-time library or some of<br>
the graph libraries are not included in the default library search<br>
path. You probably need to put the directory where these libraries<br>
are installed into /etc/ld.so.conf and run "ldconfig" after that.<br>
<br>
<br>
Regards,<br>
Henrik<br>
<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
hobbit-unsubscribe@hswn.dk<br>
<br>
<br>
</tt></font>
<br>

<P><hr size=1></P>
<P><STRONG>
This message, and any attachments to it, may contain information that<br>is privileged, confidential, and exempt from disclosure under<br>applicable law.  If the reader of this message is not the intended<br>recipient, you are notified that any use, dissemination, distribution,<br>copying, or communication of this message is strictly prohibited.  If<br>you have received this message in error, please notify the sender<br>immediately by return e-mail and delete the message and any<br>attachments.  Thank you.
</STRONG></P>
</BODY>
</HTML>