Xymon Mailing List Archive search

trend graphs broken images

10 messages in this thread

list Michael Frey · Thu, 20 Oct 2005 15:56:14 -0400 ·
I have just installed hobbitmon on a VMWare Instance of RedHat 7.2.  I followed the RRDTool build step by step and the hobbitmon procedure.
 Everything is working as designed except the graphs of trends at the bottom of the services pages and on the trends page are not being displayed.  There is a broken image link.  The static magnifying glass gif is OK.
 I checked the rrd files in data/rrd and did an rrdtool fetch, and the data is being populated.
 The http access logs indicates the call to hobbitgraph.sh is returning a 200.
 I've attempted to activate debugging with "--debug" in the hobbitcgi.cfg file for hobbitgraph.sh, but cannot locate where that is logging.
 When I try and run the hobbitgraph.sh from the command line, it executes but says I did not supply the right arguments.
 Any ideas/suggestions?

Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


This message, and any attachments to it, may contain information that
is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination, distribution,
copying, or communication of this message is strictly prohibited.  If
you have received this message in error, please notify the sender
immediately by return e-mail and delete the message and any
attachments.  Thank you.
list Henrik Størner · Thu, 20 Oct 2005 22:11:24 +0200 ·
quoted from Michael Frey
On Thu, Oct 20, 2005 at 03:56:14PM -0400, Michael Frey wrote:
 
I've attempted to activate debugging with "--debug" in the hobbitcgi.cfg 
file for hobbitgraph.sh, but cannot locate where that is logging.
It should log to cgierror.log in the Hobbit log directory, but you 
probably have to create this file and make it writable by the userid
that your CGI scripts run with (probably "nobody" or "httpd" - see what
userid's appear for your httpd processes).
quoted from Michael Frey
When I try and run the hobbitgraph.sh from the command line, it executes 
but says I did not supply the right arguments.
No, it really does need the environment settings provided by the
webserver CGI interface.

The URL for one of these graphs looks like

http://www.hswn.dk/hobbit-cgi/hobbitgraph.sh?host=voodoo.hswn.dk&service=la&graph_width=576&graph_height=120&disp=voodoo%2ehswn%2edk&nostale&graph=hourly&action=view

To run the hobbitgraph CGI by hand, you would do

REQUEST_URI="" QUERY_STRING="host=voodoo.hswn.dk&service=la&graph_width=576&graph_height=120&disp=voodoo.hswn.dk&nostale&graph=hourly&action=view" /usr/lib/hobbit/cgi-bin/hobbitgraph.sh >/tmp/cgi.out

i.e. provide an empty REQUEST_URI and a QUERY_STRING with the part of
the URL after the "?".


Regards,
Henrik
list Michael Frey · Thu, 20 Oct 2005 16:24:21 -0400 ·
Thank you.

The output from the log is:
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
quoted from Michael Frey

Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) 
10/20/2005 04:11 PM
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] trend graphs broken images
quoted from Michael Frey


On Thu, Oct 20, 2005 at 03:56:14PM -0400, Michael Frey wrote:
I've attempted to activate debugging with "--debug" in the hobbitcgi.cfg 
file for hobbitgraph.sh, but cannot locate where that is logging.
It should log to cgierror.log in the Hobbit log directory, but you 
probably have to create this file and make it writable by the userid
that your CGI scripts run with (probably "nobody" or "httpd" - see what
userid's appear for your httpd processes).
When I try and run the hobbitgraph.sh from the command line, it executes 
but says I did not supply the right arguments.
No, it really does need the environment settings provided by the
webserver CGI interface.

The URL for one of these graphs looks like

http://www.hswn.dk/hobbit-cgi/hobbitgraph.sh?host=voodoo.hswn.dk&service=la&graph_width=576&graph_height=120&disp=voodoo%2ehswn%2edk&nostale&graph=hourly&action=view


To run the hobbitgraph CGI by hand, you would do

REQUEST_URI="" 
QUERY_STRING="host=voodoo.hswn.dk&service=la&graph_width=576&graph_height=120&disp=voodoo.hswn.dk&nostale&graph=hourly&action=view" 
/usr/lib/hobbit/cgi-bin/hobbitgraph.sh >/tmp/cgi.out

i.e. provide an empty REQUEST_URI and a QUERY_STRING with the part of
the URL after the "?".


Regards,
Henrik


This message, and any attachments to it, may contain information that
is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination, distribution,
copying, or communication of this message is strictly prohibited.  If
you have received this message in error, please notify the sender
immediately by return e-mail and delete the message and any
attachments.  Thank you.
list Henrik Størner · Thu, 20 Oct 2005 22:33:34 +0200 ·
quoted from Michael Frey
On Thu, Oct 20, 2005 at 04:24:21PM -0400, Michael Frey wrote:
Thank you.

The output from the log is:
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
OK, you have some mismatch between the (surprise!) versions of libpng
installed on the box where you compiled Hobbit, and where it's running.

libpng is used by RRDtool, so you'll have to go back and figure out 
where you got RRDtool - and then preferably compile it yourself, or
at least make sure the header files that you use when compiling RRDtool
and Hobbit actually match the run-time library that is available.


Regards,
Henrik
list Michael Frey · Thu, 20 Oct 2005 16:36:11 -0400 ·
Thanks so much for your help.
quoted from Michael Frey


Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) 

10/20/2005 04:33 PM
signature
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] trend graphs broken images


quoted from Michael Frey
On Thu, Oct 20, 2005 at 04:24:21PM -0400, Michael Frey wrote:
Thank you.

The output from the log is:
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
OK, you have some mismatch between the (surprise!) versions of libpng
installed on the box where you compiled Hobbit, and where it's running.

libpng is used by RRDtool, so you'll have to go back and figure out 
where you got RRDtool - and then preferably compile it yourself, or
at least make sure the header files that you use when compiling RRDtool
and Hobbit actually match the run-time library that is available.


Regards,
Henrik


This message, and any attachments to it, may contain information that
is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination, distribution,
copying, or communication of this message is strictly prohibited.  If
you have received this message in error, please notify the sender
immediately by return e-mail and delete the message and any
attachments.  Thank you.
list Michael Frey · Thu, 20 Oct 2005 17:46:54 -0400 ·
RRDTool was compiled following the directions of rrdtool, which looks like 
it has libpng compile to the $RRDBUILD/lb directory.

hobbit was compiled without any special path/include options.  It is 
conceivalbe that when hobbit was compiled it found the stock libpng 
libraries of RedHat 7.2

I have since recompiled libpng with "--prefix=/usr" and done a make 
install.  This appears to have worked as the /usr/lib/libpng is from 
today.

The images are still broken.

I am a little confused as to the error message.

Does this mean rrdtool can't find the right libpng library, or the 
hobbitgraph binary?
quoted from Michael Frey

Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) 
10/20/2005 04:33 PM
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] trend graphs broken images


On Thu, Oct 20, 2005 at 04:24:21PM -0400, Michael Frey wrote:
Thank you.

The output from the log is:
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
libpng error: Incompatible libpng version in application and library
OK, you have some mismatch between the (surprise!) versions of libpng
installed on the box where you compiled Hobbit, and where it's running.

libpng is used by RRDtool, so you'll have to go back and figure out 
where you got RRDtool - and then preferably compile it yourself, or
at least make sure the header files that you use when compiling RRDtool
and Hobbit actually match the run-time library that is available.


Regards,
Henrik


This message, and any attachments to it, may contain information that
is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination, distribution,
copying, or communication of this message is strictly prohibited.  If
you have received this message in error, please notify the sender
immediately by return e-mail and delete the message and any
attachments.  Thank you.
list Henrik Størner · Fri, 21 Oct 2005 07:43:36 +0200 ·
quoted from Michael Frey
On Thu, Oct 20, 2005 at 05:46:54PM -0400, Michael Frey wrote:
hobbit was compiled without any special path/include options.  It is 
conceivalbe that when hobbit was compiled it found the stock libpng 
libraries of RedHat 7.2
I'm sure it does. 
quoted from Michael Frey
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
Red Hat 7.2 ships with libpng 1.0.12. So it seems that hobbitgraph.cgi
picks up the standard libpng 1.0 run-time library - try doing a
"ldd ~hobbit/server/bin/hobbitgraph.cgi" and see what libraries
it picks up.

But your system has the header files - /usr/include/png.h et al - 
from another libpng version, 1.2.8. This mismatch between the
header-files (used when compiling Hobbit) and the run-time library
is what triggers this error.
quoted from Michael Frey
I have since recompiled libpng with "--prefix=/usr" and done a make 
install.  This appears to have worked as the /usr/lib/libpng is from 
today.
Which libpng version did you compile, then ? And you need to check all
of the /usr/lib/libpng.so* files, since those are the ones used at
run-time. Did you also run "ldconfig" to update the cache of runtime
libraries ?


Henrik
list Michael Frey · Fri, 21 Oct 2005 08:31:49 -0400 ·
[hobbit at nbtbigbro1 hobbit]$ ldd ~hobbit/server/bin/hobbitgraph.cgi
        librrd.so.2 => /usr/local/rrdtool-1.2.11/lib/librrd.so.2 
(0x40018000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x400ec000)
        libc.so.6 => /lib/i686/libc.so.6 (0x4011d000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40258000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4027b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000

Which libpng version did you compile
        libpng-1.2.8
quoted from Henrik Størner

Did you also run "ldconfig" to update the cache of runtime
libraries ?

        I do not see ldconfig anywhere.
quoted from Michael Frey

Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) 

10/21/2005 01:43 AM
signature
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] trend graphs broken images


quoted from Michael Frey
On Thu, Oct 20, 2005 at 05:46:54PM -0400, Michael Frey wrote:
hobbit was compiled without any special path/include options.  It is 
conceivalbe that when hobbit was compiled it found the stock libpng 
libraries of RedHat 7.2
I'm sure it does. 
libpng warning: Application was compiled with png.h from libpng-1.2.8
libpng warning: Application  is running with png.c from libpng-1.0.12
Red Hat 7.2 ships with libpng 1.0.12. So it seems that hobbitgraph.cgi
picks up the standard libpng 1.0 run-time library - try doing a
"ldd ~hobbit/server/bin/hobbitgraph.cgi" and see what libraries
it picks up.

But your system has the header files - /usr/include/png.h et al - 
from another libpng version, 1.2.8. This mismatch between the
header-files (used when compiling Hobbit) and the run-time library
is what triggers this error.
I have since recompiled libpng with "--prefix=/usr" and done a make 
install.  This appears to have worked as the /usr/lib/libpng is from 
today.
Which libpng version did you compile, then ? And you need to check all
of the /usr/lib/libpng.so* files, since those are the ones used at
run-time. Did you also run "ldconfig" to update the cache of runtime
libraries ?


Henrik


This message, and any attachments to it, may contain information that
is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination, distribution,
copying, or communication of this message is strictly prohibited.  If
you have received this message in error, please notify the sender
immediately by return e-mail and delete the message and any
attachments.  Thank you.
list Henrik Størner · Fri, 21 Oct 2005 15:43:54 +0200 ·
quoted from Michael Frey
On Fri, Oct 21, 2005 at 08:31:49AM -0400, Michael Frey wrote:
[hobbit at nbtbigbro1 hobbit]$ ldd ~hobbit/server/bin/hobbitgraph.cgi
        librrd.so.2 => /usr/local/rrdtool-1.2.11/lib/librrd.so.2 
(0x40018000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x400ec000)
        libc.so.6 => /lib/i686/libc.so.6 (0x4011d000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40258000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4027b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000

Which libpng version did you compile
        libpng-1.2.8

Did you also run "ldconfig" to update the cache of runtime
libraries ?
        I do not see ldconfig anywhere.
I believe it's a built-in system command - /sbin/ldconfig


Henrik
list Michael Frey · Fri, 21 Oct 2005 09:53:55 -0400 ·
Running ldconfig did not correct the graphing issue.
quoted from Michael Frey

Michael Frey
Intel Senior Systems Engineer
The Guardian Life Insurance Company of America
XXXX Burgess Place, 2-West
Bethlehem, PA XXXXX
E-Mail: user-0d6bef7dd02b@xymon.invalid
Phone: XXX-XXX-XXXX
Fax: XXX-XXX-XXXX


user-ce4a2c883f75@xymon.invalid (Henrik Stoerner) 

10/21/2005 09:43 AM
signature
Please respond to
user-ae9b8668bcde@xymon.invalid


To
user-ae9b8668bcde@xymon.invalid
cc

Subject
Re: [hobbit] trend graphs broken images


quoted from Michael Frey
On Fri, Oct 21, 2005 at 08:31:49AM -0400, Michael Frey wrote:
[hobbit at nbtbigbro1 hobbit]$ ldd ~hobbit/server/bin/hobbitgraph.cgi
        librrd.so.2 => /usr/local/rrdtool-1.2.11/lib/librrd.so.2 
(0x40018000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x400ec000)
        libc.so.6 => /lib/i686/libc.so.6 (0x4011d000)
        libm.so.6 => /lib/i686/libm.so.6 (0x40258000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4027b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000

Which libpng version did you compile
        libpng-1.2.8

Did you also run "ldconfig" to update the cache of runtime
libraries ?
        I do not see ldconfig anywhere.
I believe it's a built-in system command - /sbin/ldconfig


Henrik


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