[hobbit] graphs missing text

Henrik Størner henrik at hswn.dk
Tue Dec 30 23:30:26 CET 2008


In <EAF191774F754841847C5D180638ADFF0F4AE478 at ASHEVS004.mcilink.com> "Simon, Mark T (Mark Simon)" <mark.simon at verizonbusiness.com> writes:

>Hello Brothers and Big Sisters, I love the new name (guess why). I just
>converted my Hobbit Server to a Xymon Server. I copied over the histlogs
>and rrd files and everything is working with one small annoyance, my
>graphs have no text. The graphs are generated with data, grids, arrows,
>and lines but no labels or legends. I know this can happen if the fonts
>are not installed but it works fine when running Hobbit on the same
>server. I also manually generated a graph with rrdtool and it came out
>fine. This happens for rrd files I copied from Hobbit and on ones newly
>generated by Xymon.

>I built Xymon on an HP-UX 11.23 IA64 server. I am using rrdtool ver
>1.2.23 that I built on this same server.

RRDtool uses an external font (ttf) file when it renders the text.
It sounds as if the hobbitgraph.cgi binary picks up a version of
the rrdtool library which has a built in filename for this ttf-file
that doesn't match the actual location. Usually this happens if
the rrdtool library was built on another machine.


I don't know how to do this in HP-UX, but on Linux or Solaris I'd use 
the "ldd" utility to see which rrdtool library is used:

$ ldd ~xymon/server/bin/hobbitgraph.cgi
        linux-gate.so.1 =>  (0xb80b8000)
        libpcre.so.3 => /lib/libpcre.so.3 (0xb805e000)
        librrd.so.2 => /usr/lib/librrd.so.2 (0xb8015000)

(If there's no librrd listed, then it's probably linked statically.
In that case, the next step is done againt the hobbitgraph.cgi binary).


Next, do a "strings" and "grep" on /usr/lib/librrd.so.2 to see what
ttf-file it references:

$ strings /usr/lib/librrd.so.2 |grep ttf
 @/usr/share/rrdtool/librrd2/DejaVuSansMono-Roman.ttf


Does that file exist ? It is readable by the webserver userid ?

$ ls -l /usr/share/rrdtool/librrd2/DejaVuSansMono-Roman.ttf
-rw-r--r-- 1 root root 60444 2008-02-17 11:26 /usr/share/rrdtool/librrd2/DejaVuSansMono-Roman.ttf

NB: This is only for RRDtool 1.2.x - the 1.3.x handling of fonts is 
quite different.


Regards,
Henrik




More information about the Xymon mailing list