[Orca-users] Size of the graphs produced by Orca.

colin at ccsisupport.com colin at ccsisupport.com
Wed Nov 29 16:22:00 PST 2006


Just a further note here;


> Thanks for the feedback, Colin.  Here are my thoughts:
>
> (1)  There may be a way to override that at install/build time, if not
> in a config file somewhere.  Will have to look more deeply into that
> (and implement it if it really doesn't exist)
> (2)  Hmm, I wonder if the plot_width is the width of the graph itself,
> and that is then padded with axis labels and whatnot?

Both logic and observation seem to bear this out. Some more testing here
produced the following:

1) If plot_width=800, the actual images end up being 891pixels wide. If
   plot_width=900, the resulting image is 991 pixels. For that matter,
   the default plots are 591 pixels, so I'm assuming that the default
   is 500 pixels and the 91 is indeed the labels and padding.
2) Considering that the height of a png will vary if it has more labels
   (i.e. the system overview or disk usage/percent graphs), it would make
   little or no sense to specify the overall height of an image; but it
   makes eminent sense to specify the graphed portion and let the program
   pad it with labels and such as necessary.
3) It appears that the default plot size is 500x115, strictly for the
   graph portion. I have increased it on my system to 800x175, which is
   fairly close to the same ratio and has much better visibility.

> (3)  This is probably because older images with the old dimensions
> didn't match the new HTML files with the new dimensions specified in
> <img src> tags.  As those images got updated, so too did their size, and
> then all was good.
>     This is particularly noticable with the monthly, quarterly, and
> yearly graphs, which are much less frequently updated.

Strange behaviour here. No matter what I do, the first plot generated
after making a change to the width or height has stretched/compressed
text. This is particularly weird, because in my test environment, I
blow away ${ORCA}/var/html/orcallator/* and ${ORCA}/var/rrd/orcallator
completely before each test run!

Don't know why, but the second graph (either with or without the
'cleanup') works fine.

Colin

> Cheers,
> --Dragon
>
>
> colin at ccsisupport.com wrote:
>> Hey folks;
>>
>>
>>> You can specify a plot_width or plot_height in any group {}.  You might
>>> even be able to put it in global {}.
>>>
>>
>> I did some checking last night on our new r529 build of Orca. The
>> following
>> are the results:
>>
>> 1) This has to go in each plot{} directive. It will error out in a
>> group{}
>>    or global{} directive. Thus, get familiar with your favorite editor.
>> 2) The actual size of the plot is never exactly what you specify. Don't
>>    know why, but "plot_width 900" gives 991 pixel plots. The default of
>>    595 never gave me 595 pixel plots either, though.
>> 3) The text on _some_ plots was stretched for a few hours after the new
>>    size took effect, but seems to have calmed down now.
>>
>> Short answer: it works nicely.
>>
>> Colin
>>
>
>





More information about the Orca-users mailing list