[hobbit] problem with graphs(4.1.2p1)

sladewig sladewig at bankinfo.com
Fri Nov 18 14:26:54 CET 2005


Longina Przybyszewska wrote:
> Bingo.
> hobbitgraph.cgi couldn't find librrd.so.0 library.
> But it could in 4.1.2 version with the same configuration.
> 
> If I check with ldd it doesn't claims about libraries:
> /opt/hobbit/server/bin# ldd hobbitgraph.cgi
>         libpcre.so.0 =>  /usr/local/lib/libpcre.so.0
>         librrd.so.0 =>   /usr/local/lib/librrd.so.0
>         libresolv.so.2 =>        /usr/lib/libresolv.so.2
>         libsocket.so.1 =>        /usr/lib/libsocket.so.1
>         libnsl.so.1 =>   /usr/lib/libnsl.so.1
>         libc.so.1 =>     /usr/lib/libc.so.1
>         libm.so.1 =>     /usr/lib/libm.so.1
>         libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1
>         libdl.so.1 =>    /usr/lib/libdl.so.1
>         libmp.so.2 =>    /usr/lib/libmp.so.2

You probably have LD_LIBRARY_PATH setup for your shell from which you 
execute the ldd command. So the lib is found.

> when librrd.so.0 is a link:
> /usr/local/lib/librrd.so.0 ->/usr/local/rrdtool-1.0.49/lib/librrd.so.0.0.0

> Additionally I supplied hobbitserver.cfg with defs for runtime libraries:
> LD_LIBRARY_PATH="/usr/local/rrdtool-1.0.49/lib"
> RUNTIMEDEFS="LD_LIBRARY_PATH=/usr/local/rrdtool-1.0.49/lib"

Your librrd.so is is really in /usr/local/rrdtool-1.0.49/lib ? I'm not 
sure if it will follow symlinks.

What are makefile flags like? It is much easier need to pass in your case:
RRDLIBS = -L/usr/local/rrdtool-1.0.49/lib \
	-R/usr/local/rrdtool-1.0.49/lib -lrrd -L/usr/local/lib \
	-R/usr/local/lib -lpng

The '-R' is "A colon-separated list of directories used to  specify 
library  search  directories to the runtime linker".

Then you won't need to use env variables in the scripts.

--
steve

> Longina Przybyszewska, system programmer
> Dept. of Math. & Comp. Sci. - IMADA
> University of Southern Denmark, Odense
> Campusvej 55,DK-5230 Odense M, Denmark
> 
> tel: +45 6550 2359 - http://www.imada.sdu.dk         email: 
> longina at imada.sdu.dk
> -- 
> 
> On Thu, 17 Nov 2005, Thomas wrote:
> 
>> What is the server error log giving you on the error when you click on 
>> a graph ? If you check the HTML source maybe this could give you a 
>> hint also.
>>
>> /Thomas
>>
>> Longina Przybyszewska wrote:
>>
>>> Hi again,
>>> I upgraded Hobbit to the newest version and all graphs dissapeared.
>>> Click on graph links ends with Internal Server Error page.
>>>
>>> Hobbitd_rrd starts up and runs.
>>> New data are gathered in data/rrd/*
>>> The only information about failure is in rrd-status.log - a lot of
>>> the same messages for each host/service - (I have seen them before, 
>>> and they seemd to harmless in the prevoius version of Hobbit) --
>>> RRD error updating....  illegal attempt to update using time
>>> 1132231125 when last update time is 1132231125 (minimum one second step)
>>> ---
>>>
>>> Hobbit runs on SunOS(sparc) - there were no problems with graphs in 
>>> the previous version (4.1.2).
>>>
>>> How can I get more information from the Hobbit- what is wrong?
>>>
>>> Longina
>>> -- 
>>> Longina Przybyszewska, system programmer
>>> Dept. of Math. & Comp. Sci. - IMADA
>>> University of Southern Denmark, Odense
>>> Campusvej 55,DK-5230 Odense M, Denmark
>>>
>>> tel: +45 6550 2359 - http://www.imada.sdu.dk         email: 
>>> longina at imada.sdu.dk
>>> -- 
>>>
>>> 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
>>
>>
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
> 
> 



More information about the Xymon mailing list