Xymon Mailing List Archive search

Graphs are fuzzy and distorted : Solaris 8/sparc

4 messages in this thread

list Yannick Mercier · Tue, 6 Feb 2007 16:14:01 -0500 ·
Hi hobbit list,
 after installing hobbit server on a Solaris 8 machine
a couple of days ago with a couple of clients, all solaris8 / sparc
I got issues with graphs generation, it gives some fuzzy results
with the drawed data line, going up or down, or graphic filling with
colors

It is also drawing big black X above all the legend's solid-colored squares

Here is the source code I used to build rrdtool :

rrdtool-1.2.17
freetype-2.3.0
libart_lgpl-2.3.17
libpng-1.2.15

Can anyone point me to something wrong I would have done ?
I cant find any errors in apache or in hobbit logs


Thank you
Yannick
list Henrik Størner · Sat, 10 Feb 2007 22:45:08 +0100 ·
quoted from Yannick Mercier
On Tue, Feb 06, 2007 at 04:14:01PM -0500, Yannick Mercier wrote:
Hi hobbit list,
after installing hobbit server on a Solaris 8 machine
a couple of days ago with a couple of clients, all solaris8 / sparc
I got issues with graphs generation, it gives some fuzzy results
with the drawed data line, going up or down, or graphic filling with
colors

It is also drawing big black X above all the legend's solid-colored squares
I see you asked this on the rrd-users mailing list tonight, and provided
links to some of the graphs. They do look bizarre - I've never seen
anything like it - but since the graph generation is 100% done by
rrdtool, I think you're right to post that question on their mailing
list.


Regards,
Henrik
list Yannick Mercier · Sat, 10 Feb 2007 16:56:28 -0500 ·
Yes, I hope that I will get some help because I really dont know
where to look in the hobbit config for graphs generation parameters that I
could change..
I thought trying to change fonts, colors if I could ... and see if it can
get things better
Ive been looking to turn on some debugging around graphs generation but I
cant find
no such parameters ..

if anyone wants to see the graphs, I uploaded them at :
http://jubeininja.spaces.live.com/

Yan
quoted from Henrik Størner


On 2/10/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Tue, Feb 06, 2007 at 04:14:01PM -0500, Yannick Mercier wrote:
Hi hobbit list,
after installing hobbit server on a Solaris 8 machine
a couple of days ago with a couple of clients, all solaris8 / sparc
I got issues with graphs generation, it gives some fuzzy results
with the drawed data line, going up or down, or graphic filling with
colors

It is also drawing big black X above all the legend's solid-colored
squares
I see you asked this on the rrd-users mailing list tonight, and provided
links to some of the graphs. They do look bizarre - I've never seen
anything like it - but since the graph generation is 100% done by
rrdtool, I think you're right to post that question on their mailing
list.


Regards,
Henrik

list Henrik Størner · Sat, 10 Feb 2007 23:32:57 +0100 ·
quoted from Yannick Mercier
On Sat, Feb 10, 2007 at 04:56:28PM -0500, Yannick Mercier wrote:
Yes, I hope that I will get some help because I really dont know
where to look in the hobbit config for graphs generation parameters that I
could change..
One thing you could try was to completely remove any Hobbit code from
the graph generation and see if the graph image still looks weird.

Get one of the graphs in your browser and note the URL for the graph
image. (If using Firefox,then right-click and "View image" will bring up
only the graph image, with the URL for this in the address bar). It will 
be something like (one long line):

http://hobbit.test.com/cgi-bin/hobbitgraph.sh?host=myhost&service=la&graph_width=576&graph_height=120&disp=myhost&nostale&color=green&graph=hourly&action=view

Grab the part after the '?' and put it into the QUERY_STRING environment
variable, and setup two other env. variable mimicking how the CGI
program is invoked:

   QUERY_STRING="host=myhost&service=la&graph_width=576&graph_height=120&disp=myhost&nostale&color=green&graph=hourly&action=view"
   REQUEST_METHOD="GET"
   SCRIPT_NAME="hobbitgraph.sh"
   export QUERY_STRING REQUEST_METHOD SCRIPT_NAME

then run "bbcmd hobbitgraph.cgi --debug >/tmp/graph.out".  The top of 
"graph.out" is the debugging output. Should be like this:

2007-02-10 23:16:35 rrdgraph
2007-02-10 23:16:35 -
2007-02-10 23:16:35 --title
2007-02-10 23:16:35 myhost CPU Load Last 48 Hours
2007-02-10 23:16:35 -w576
2007-02-10 23:16:35 -h120
2007-02-10 23:16:35 -v
2007-02-10 23:16:35 Load
2007-02-10 23:16:35 -a
2007-02-10 23:16:35 PNG
2007-02-10 23:16:35 -s e-48h
2007-02-10 23:16:35 DEF:avg=la.rrd:la:AVERAGE
2007-02-10 23:16:35 CDEF:la=avg,100,/
2007-02-10 23:16:35 AREA:la#00CC00:CPU Load Average
2007-02-10 23:16:35 -u 1.0
2007-02-10 23:16:35 GPRINT:la:LAST: \: %5.1lf (cur)
2007-02-10 23:16:35 GPRINT:la:MAX: \: %5.1lf (max)
2007-02-10 23:16:35 GPRINT:la:MIN: \: %5.1lf (min)
2007-02-10 23:16:35 GPRINT:la:AVERAGE: \: %5.1lf (avg)\n
2007-02-10 23:16:35 COMMENT:Updated: 10-Feb-2007 23:16:35

Each line is one of the arguments to the "rrd_graph()" function call.
You can generate the exact same graph image using the rrdtool program:

cd ~hobbit/data/rrd/myhost
rrdtool graph \
	- \
	--title \
	"myhost CPU Load Last 48 Hours" \
	-w576 \
	-h120 \
	-v \
	Load \
	-a \
	PNG \
	-s e-48h \
	"DEF:avg=la.rrd:la:AVERAGE" \
	"CDEF:la=avg,100,/" \
	"AREA:la#00CC00:CPU Load Average" \
	-u 1.0
	"GPRINT:la:LAST: \: %5.1lf (cur)" \
	"GPRINT:la:MAX: \: %5.1lf (max)" \
	"GPRINT:la:MIN: \: %5.1lf (min)" \
	"GPRINT:la:AVERAGE: \: %5.1lf (avg)\n"
	"COMMENT:Updated: 10-Feb-2007 23:16:35"    >/tmp/mygraph.png

Then take a look at the /tmp/mygraph.png file in your browser and see if it
has the same problem. If it does, then it's purely an rrdtool problem.


Regards,
Henrik