Xymon Mailing List Archive search

graphs missing text

3 messages in this thread

list Mark T Mark Simon Simon · Tue, 30 Dec 2008 21:45:08 +0000 ·
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.

 
The only build issue I had was I had to make a link /usr/local/pcre/lib
-> ../lib/hpux32 so pcre.sh could find the lib files.

 
Mark Simon Verizon USE-HP Support

2400 N Glenville Dr

Richardson, TX 75082

(972)729-5674 v777-5674
list Henrik Størner · Tue, 30 Dec 2008 22:30:26 +0000 (UTC) ·
quoted from Mark T Mark Simon Simon
In <user-647cdcf45a2e@xymon.invalid> "Simon, Mark T (Mark Simon)" <user-b88e47e11774@xymon.invalid> 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
list Mark T Mark Simon Simon · Wed, 31 Dec 2008 17:33:36 +0000 ·
Thanks Henrik, My problem turned out to be permissions on some of the lib files.

Everything is working great now.

Mark Simon VIPS USE-HP Support
2400 N Glenville Dr
Richardson, TX 75082
(972)729-5674 v777-5674

Re: [hobbit] graphs missing text
* To: user-ae9b8668bcde@xymon.invalid 
* Subject: Re: [hobbit] graphs missing text 
* From: Henrik "Størner" <user-ce4a2c883f75@xymon.invalid> 
* Date: Tue, 30 Dec 2008 22:30:26 +0000 (UTC) 
* Newsgroups: lists.hobbit 
* Organization: Linux Users Inc. 
* References: <user-647cdcf45a2e@xymon.invalid> 
* User-agent: nn/6.7.3 
quoted from Henrik Størner
In <user-647cdcf45a2e@xymon.invalid> "Simon, Mark T (Mark Simon)" <user-b88e47e11774@xymon.invalid> 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