[hobbit] problem to see rrd graph
Marco Avvisano
marco.avvisano at regione.toscana.it
Fri Feb 3 09:43:45 CET 2006
Searching in mail archive i found that, to test cgi, i need also to set
REQUEST_URI.
So i try :
export REQUEST_METHOD=GET
QUERY_STRING="host=...."
export QUERY_STRING
REQUEST_URI="http://localhost/cgi-bin/hobbitgraph.sh?${QUERY_STRING}"
export REQUEST_URI
./hobbitgraph.sh
the new output seems normal, but i can't see graphs:
<tr>
<td align="left"><img
src="http://monitor.regione.toscana.it/cgi-bin/hobbitgraph.sh?host=monitor.regione.toscana.it&service=la&graph_height=120&graph_width=576&disp=hosta&nostale&action=view&graph=hourly"
alt="hourly graph"></td>
<td align="left" valign="top"> <a
href="http://monitor.regione.toscana.it/cgi-bin/hobbitgraph.sh?host=monitor.regione.toscana.it&service=la&graph_height=120&graph_width=576&disp=hosta&nostale&graph=hourly&action=selzoom">
<img src="/gifs/zoom.gif" border=0 alt="Zoom graph" style='padding: 3px'>
</a> </td>
</tr>
<tr>
no error on cgierror.log. I try to reinstall libpng 1.2.8 zlib 1.2.2, and
recompile hobbit.
My ldd output for hobbitgraph.cgi is :
libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x00e86000)
librrd.so.2 => /usr/local/rrdtool-1.2.12/lib/librrd.so.2
(0x004c2000)
libpng.so.3 => /usr/local/lib/libpng.so.3 (0x0090e000)
libc.so.6 => /lib/tls/libc.so.6 (0x0098f000)
libm.so.6 => /lib/tls/libm.so.6 (0x00480000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00fe5000)
I try also to add in ld.so.conf /usr/local/lib, where is libpng.so, and run
lidconfig:
ldconfig -v | grep libpng
libpng.so.3 -> libpng.so.3.1.2.6
libpng12.so.0 -> libpng12.so.0.1.2.6
libpng12.so.0 -> libpng12.so.0.1.2.2
any suggestions ?
M.
----- Original Message -----
From: "Marco Avvisano" <marco.avvisano at regione.toscana.it>
To: <hobbit at hswn.dk>
Sent: Wednesday, February 01, 2006 4:19 PM
Subject: Re: [hobbit] problem to see rrd graph
>
> I try to set REQUEST_METHOD=GET but the output is always :
>
> Content-type: image/png
> Expires: Wed, 01 Feb 2006 15:23:43 GMT
>
> Content-type: text/html
>
> <html><head><title>Invalid request</title></head>
> <body>Garbage ': 01-Feb-2006 16:18:43' after command:
> COMMENT:Updated: 01-Feb-2006 16:18:43</body></html>
>
> I have upgraded from hobbit 4.0.4
>
> M.
>
> ----- Original Message -----
> From: "Henrik Stoerner" <henrik at hswn.dk>
> To: <hobbit at hswn.dk>
> Sent: Tuesday, January 31, 2006 3:51 PM
> Subject: Re: [hobbit] problem to see rrd graph
>
>
>> On Tue, Jan 31, 2006 at 10:23:44AM +0100, Marco Avvisano wrote:
>>> I try to exec by hand hobbitgraph.sh, setting :
>>>
>>>
>>> REQUEST_URI=""
>>>
>>> QUERY_STRING="host=monitor.regione.toscana.it&service=la&graph_width=576&graph_height=120&first=1&count=1&disp=monitor%2eregione%2etoscana%2eit&nostale&graph=hourly&action=view"
>>
>> You need to set REQUEST_METHOD=GET also.
>>
>>
>> Henrik
>>
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nographs.gif
Type: image/gif
Size: 2604 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060203/9b8dc45a/attachment.gif>
More information about the Xymon
mailing list