[Xymon] changing graph canvas color

Josh Luthman josh at imaginenetworksllc.com
Thu Apr 28 21:52:28 CEST 2011


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: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373


On Thu, Apr 28, 2011 at 3:42 PM, Ralph Mitchell <ralphmitchell at gmail.com>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 <josh at imaginenetworksllc.com
> > 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: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>>
>> On Thu, Apr 28, 2011 at 3:15 PM, Lynn Osburn <
>> losburn at thepinnaclegroup.com> wrote:
>>
>>>  No, Josh, was referring to the graphs generated from the rrd data.
>>>
>>>
>>>
>>> *From:* Josh Luthman [mailto:josh at imaginenetworksllc.com]
>>> *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: 937-552-2340
>>> Direct: 937-552-2343
>>> 1100 Wayne St
>>> Suite 1337
>>> Troy, OH 45373
>>>
>>>  On Thu, Apr 28, 2011 at 2:56 PM, Lynn Osburn <
>>> losburn at thepinnaclegroup.com> 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!
>>> _______________________________________________
>>> Xymon mailing list
>>> Xymon at xymon.com
>>> http://lists.xymon.com/mailman/listinfo/xymon
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110428/158539fc/attachment.html>


More information about the Xymon mailing list