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 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
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.
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&...
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
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
Michael Frey Intel Senior Systems Engineer The Guardian Life Insurance Company of America 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
henrik at hswn.dk (Henrik Stoerner) 10/20/2005 04:11 PM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk cc
Subject Re: [hobbit] trend graphs broken images
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&...
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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
Thanks so much for your help.
Michael Frey Intel Senior Systems Engineer The Guardian Life Insurance Company of America 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
henrik at hswn.dk (Henrik Stoerner) 10/20/2005 04:33 PM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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?
Michael Frey Intel Senior Systems Engineer The Guardian Life Insurance Company of America 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
henrik at hswn.dk (Henrik Stoerner) 10/20/2005 04:33 PM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk 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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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
[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.
Michael Frey Intel Senior Systems Engineer The Guardian Life Insurance Company of America 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
henrik at hswn.dk (Henrik Stoerner) 10/21/2005 01:43 AM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk cc
Subject Re: [hobbit] trend graphs broken images
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
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
Running ldconfig did not correct the graphing issue.
Michael Frey Intel Senior Systems Engineer The Guardian Life Insurance Company of America 3900 Burgess Place, 2-West Bethlehem, PA 18017 E-Mail: Michael_frey at glic.com Phone: 610-807-7889 Fax: 610-807-6003
henrik at hswn.dk (Henrik Stoerner) 10/21/2005 09:43 AM Please respond to hobbit at hswn.dk
To hobbit at hswn.dk cc
Subject Re: [hobbit] trend graphs broken images
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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.
participants (2)
-
henrik@hswn.dk
-
michael_frey@glic.com