Xymon Mailing List Archive search

changing graph canvas color

list Josh Luthman
Thu, 28 Apr 2011 15:52:28 -0400
Message-Id: <user-166dbebf6dcd@xymon.invalid>

BACK background, CANVAS for the background of the actual graph

I'm guessing BACK is the outside border and CANVAS is behind the faint
red/grey lines and the data plot.

I'm guessing it's space delimited, but could you confirm the change, compile
and post to the list, Lynn?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Thu, Apr 28, 2011 at 3:42 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
Round about line 1038 in  xymon-4.3.2/web/showgraph.c

If you just want to make the graph paper color non-white, you should only
need to add something like:

        rrdargs[argi++]  = "-c";
        rrdargs[argi++]  = "BACK#e9e9e9";

to get a light shade of grey.  If you want it configurable, there's several
places in that same file where bits need adding to be able to get options
from the graphs.cfg.

Ralph Mitchell


On Thu, Apr 28, 2011 at 3:28 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid
wrote:
My mistake, I was thinking the background of the page that the graph was
on rather then the graph image itself.

I'm thinking you'll need to modify the Xymon code itself, as I don't
recall this being configurable.  Looking at hobbitgraph.cfg I see that has
the data and variables, but the rrdtool command needs the option set.  I
don't know what calls hobbitgraph.cfg, but I bet if you find out you'll find
the answer to your original question.

http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html

[-c|--color COLORTAG#rrggbb[aa]]


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Thu, Apr 28, 2011 at 3:15 PM, Lynn Osburn <
user-fd907411ed25@xymon.invalid> wrote:
 No, Josh, was referring to the graphs generated from the rrd data.


*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Thursday, April 28, 2011 1:09 PM
*To:* Lynn Osburn
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] changing graph canvas color


You mean the repeated green/yellow/red background?  Just change the image
file.

<BODY BGCOLOR="green" *BACKGROUND="/xymon/gifs/bkg-green.gif" *TEXT="#D8D8BF"
LINK="#00FFAA" VLINK="#FFFF44">

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

 On Thu, Apr 28, 2011 at 2:56 PM, Lynn Osburn <
user-fd907411ed25@xymon.invalid> wrote:

I'm looking through the various cfg files, looking for a place to change
the background (canvas) color of all the generated graphs.

I thought I'd find it in xymonserver.cfg, but didn't see it.

Has anyone else figured this out before?

Thanks!