help - still problems to see rrd graph
list Marco Avvisano
Hi all, i try to reinstall libpng 1.2.8, zlib 1.2.3, rrdtool 1.2.12 and hobbit hobbit-4.1.2p1. All work fine, but always i can't see graphs. When i try to see the immage i see this error message: Content-type: text/html Garbage ': 09-Feb-2006 13:23:40' after command: COMMENT:Updated: 09-Feb-2006 13:23:40 my os Red Hat Enterprise Linux ES release 3 (Taroon Update 6) any ideas? M. ----- Original Message ----- From: "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Tuesday, February 07, 2006 12:46 PM Subject: Re: [hobbit] problem to see rrd graph
Hi all, perhaps my problem is connected to the rrd version ( i use rrdtool-1.2.12), or some build options that i used to install rrd is not compatible to hobbit? i follow these instructions to build rrd http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdbuild.en.html need helps.... Marco ----- Original Message ----- From: "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Friday, February 03, 2006 9:43 AM Subject: Re: [hobbit] problem to see rrd graphSearching 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" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Wednesday, February 01, 2006 4:19 PM Subject: Re: [hobbit] problem to see rrd graphI 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" <user-ce4a2c883f75@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Tuesday, January 31, 2006 3:51 PM Subject: Re: [hobbit] problem to see rrd graphOn 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
list Thomas Pedersen
Hi Marco, Have you tried to look at the rrd file using rrdtool dump file.rrd ? this could give you an indication if its the rrd file that is the problem or the cgi program. I am running RHEL 3 update 4 with this configuration hobbit 4.1.2p1 rrdtool-1.0.49-1.1.el3.dag zlib-1.1.4-8.1 libpng-1.2.2-25 which works. /thomas/
▸
Marco Avvisano wrote:Hi all, i try to reinstall libpng 1.2.8, zlib 1.2.3, rrdtool 1.2.12 and hobbit hobbit-4.1.2p1. All work fine, but always i can't see graphs. When i try to see the immage i see this error message: Content-type: text/html Garbage ': 09-Feb-2006 13:23:40' after command: COMMENT:Updated: 09-Feb-2006 13:23:40 my os Red Hat Enterprise Linux ES release 3 (Taroon Update 6) any ideas? M. ----- Original Message ----- From: "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Tuesday, February 07, 2006 12:46 PM Subject: Re: [hobbit] problem to see rrd graphHi all, perhaps my problem is connected to the rrd version ( i use rrdtool-1.2.12), or some build options that i used to install rrd is not compatible to hobbit? i follow these instructions to build rrd http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdbuild.en.html need helps.... Marco ----- Original Message ----- From: "Marco Avvisano" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Friday, February 03, 2006 9:43 AM Subject: Re: [hobbit] problem to see rrd graphSearching 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" <user-e09c0f3f8c70@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Wednesday, February 01, 2006 4:19 PM Subject: Re: [hobbit] problem to see rrd graphI 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" <user-ce4a2c883f75@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Tuesday, January 31, 2006 3:51 PM Subject: Re: [hobbit] problem to see rrd graphOn 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
--
list Henrik Størner
▸
On Thu, Feb 09, 2006 at 01:27:56PM +0100, Marco Avvisano wrote:
Hi all, i try to reinstall libpng 1.2.8, zlib 1.2.3, rrdtool 1.2.12 and hobbit hobbit-4.1.2p1. All work fine, but always i can't see graphs. When i try to see the immage i see this error message: Content-type: text/html Garbage ': 09-Feb-2006 13:23:40' after command: COMMENT:Updated: 09-Feb-2006 13:23:40
Could you try and compare your etc/hobbitgraph.cfg file with the one distributed in Hobbit 4.1.2p1 ? (It's in the hobbitd/etcfiles/ directory). The 1.2.x versions of rrdtool is very picky about colon's needing a backslash escape-char (1.0.x doesn't care). I seem to recall the some of the earlier versions of hobbitgraph.cfg did not have all of these escapes setup correctly. Unless you've added some custom graph definitions, it's probably easiest to just copy the current hobbitgraph.cfg to your installed ~hobbit/server/etc/ directory. Regards, Henrik
list Marco Avvisano
I have reinstalled rrdtool 1.0.49 and the new hobbitgraph.cfg and finally all work fine. Only the novell server memory graph not work thanks a lot for your help
▸
M.
----- Original Message -----
From: "Henrik Stoerner" <user-ce4a2c883f75@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Friday, February 10, 2006 11:09 PM
Subject: Re: [hobbit] help - still problems to see rrd graph
On Thu, Feb 09, 2006 at 01:27:56PM +0100, Marco Avvisano wrote:Hi all, i try to reinstall libpng 1.2.8, zlib 1.2.3, rrdtool 1.2.12 and hobbit hobbit-4.1.2p1. All work fine, but always i can't see graphs. When i try to see the immage i see this error message: Content-type: text/html Garbage ': 09-Feb-2006 13:23:40' after command: COMMENT:Updated: 09-Feb-2006 13:23:40Could you try and compare your etc/hobbitgraph.cfg file with the one distributed in Hobbit 4.1.2p1 ? (It's in the hobbitd/etcfiles/ directory). The 1.2.x versions of rrdtool is very picky about colon's needing a backslash escape-char (1.0.x doesn't care). I seem to recall the some of the earlier versions of hobbitgraph.cfg did not have all of these escapes setup correctly. Unless you've added some custom graph definitions, it's probably easiest to just copy the current hobbitgraph.cfg to your installed ~hobbit/server/etc/ directory. Regards, Henrik