Xymon Mailing List Archive search

Default Graph SIze

8 messages in this thread

list James Wade · Thu, 22 Dec 2011 15:56:38 -0600 ·
I'm doing a new installation of xymon. Everything is working great, but I'm
in the process of configuring and could use some assistance, so you might
see a few more posts from me.

Is there a way to have the graphs on each default to a different setting?
As an example, when looking at cpu, instead of a two day graph have a one
hour graph. Is there a global setting?

Thanks, JW
list Henrik Størner · Thu, 22 Dec 2011 23:02:13 +0100 ·
quoted from James Wade
On 22-12-2011 22:56, James Wade wrote:
I'm doing a new installation of xymon. Everything is working great, but
I'm in the process of configuring and could use some assistance, so you
might see a few more posts from me.

Is there a way to have the graphs on each default to a different
setting? As an example, when looking at cpu, instead of a two day graph
have a one hour graph. Is there a global setting?
TRENDSECONDS in xymonserver.cfg. If you change this, then you'll probably also want to change the RRDWIDTH setting, which defines the size of the graph image.

On www.xymon.com, TRENDSECONDS is set to 259200 = 3 days, and RRDWIDTH is set to 864; the reasoning being that with measurements every 5 minutes there are 288 measurements per day, so 3 days = 864 measurements. Matching the RRDWIDTH setting with this means that each measurement gets 1 pixel.


Refaeds,
Henrik
list Ralph Mitchell · Fri, 23 Dec 2011 10:38:30 -0500 ·
quoted from Henrik Størner
On Thu, Dec 22, 2011 at 5:02 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 22-12-2011 22:56, James Wade wrote:
I'm doing a new installation of xymon. Everything is working great, but
I'm in the process of configuring and could use some assistance, so you
might see a few more posts from me.

Is there a way to have the graphs on each default to a different
setting? As an example, when looking at cpu, instead of a two day graph
have a one hour graph. Is there a global setting?
TRENDSECONDS in xymonserver.cfg. If you change this, then you'll probably
also want to change the RRDWIDTH setting, which defines the size of the
graph image.

On www.xymon.com, TRENDSECONDS is set to 259200 = 3 days, and RRDWIDTH is
set to 864; the reasoning being that with measurements every 5 minutes
there are 288 measurements per day, so 3 days = 864 measurements. Matching
the RRDWIDTH setting with this means that each measurement gets 1 pixel.
If I set  TRENDSECONDS & RRDWIDTH, I get blocky graphs, presumably due to
there not being sufficient data at the normal resolution.  To fix that, I
*think* I need to:

1) resize all the the rrd files with 'rrdtool resize' - wrote a script for
that
2) alter server/etc/rrddefinitions.cfg to set the defaults for new rrd -
done that

Did I miss anything?

Thanks,

Ralph Mitchell
list James Wade · Fri, 23 Dec 2011 14:09:56 -0600 ·
Ralph,

I just changed TrendSeconds to 8640 (1 day)  and left the RRDWIDTH the
same. I get a one day graph which looks fine.

James
quoted from Ralph Mitchell

On Fri, Dec 23, 2011 at 9:38 AM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
On Thu, Dec 22, 2011 at 5:02 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 22-12-2011 22:56, James Wade wrote:
I'm doing a new installation of xymon. Everything is working great, but
I'm in the process of configuring and could use some assistance, so you
might see a few more posts from me.

Is there a way to have the graphs on each default to a different
setting? As an example, when looking at cpu, instead of a two day graph
have a one hour graph. Is there a global setting?
TRENDSECONDS in xymonserver.cfg. If you change this, then you'll probably
also want to change the RRDWIDTH setting, which defines the size of the
graph image.

On www.xymon.com, TRENDSECONDS is set to 259200 = 3 days, and RRDWIDTH
is set to 864; the reasoning being that with measurements every 5 minutes
there are 288 measurements per day, so 3 days = 864 measurements. Matching
the RRDWIDTH setting with this means that each measurement gets 1 pixel.
If I set  TRENDSECONDS & RRDWIDTH, I get blocky graphs, presumably due to
there not being sufficient data at the normal resolution.  To fix that, I
*think* I need to:

1) resize all the the rrd files with 'rrdtool resize' - wrote a script for
that
2) alter server/etc/rrddefinitions.cfg to set the defaults for new rrd -
done that

Did I miss anything?

Thanks,

Ralph Mitchell

list Ralph Mitchell · Fri, 23 Dec 2011 17:59:48 -0500 ·
The one day graph *would* look fine, but I kinda like the 3-day.

The "blocky" look I'm seeing comes from RRD generating the graph using the
best datasource to fit the size you're asking for.  By default, the first
data store contains 576 points at 5 minute intervals, which covers 2 days.
 The second data store contains 576 point at 30 minute intervals, which is
12 days.  Each of the 30-minute data points is generated by averaging
together 6 of the 5-minute data points.  If you ask rrd to generate a 3 day
graph, there are not enough points in the first data store, so it uses the
second store and each point on the graph then covers more pixels.

It's the same effect as zooming in on a graph.  To fix it, I've resized the
existing RRDs to hold 864 data points, so there will be enough fine-grain
data to get a decent 3-day graph.

Ralph Mitchell


2011/12/23 James Wade <user-659655b2ea05@xymon.invalid>
quoted from James Wade
Ralph,

I just changed TrendSeconds to 8640 (1 day)  and left the RRDWIDTH the
same. I get a one day graph which looks fine.

James

On Fri, Dec 23, 2011 at 9:38 AM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
On Thu, Dec 22, 2011 at 5:02 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 22-12-2011 22:56, James Wade wrote:
I'm doing a new installation of xymon. Everything is working great, but
I'm in the process of configuring and could use some assistance, so you
might see a few more posts from me.

Is there a way to have the graphs on each default to a different
setting? As an example, when looking at cpu, instead of a two day graph
have a one hour graph. Is there a global setting?
TRENDSECONDS in xymonserver.cfg. If you change this, then you'll
probably also want to change the RRDWIDTH setting, which defines the size
of the graph image.

On www.xymon.com, TRENDSECONDS is set to 259200 = 3 days, and RRDWIDTH
is set to 864; the reasoning being that with measurements every 5 minutes
there are 288 measurements per day, so 3 days = 864 measurements. Matching
the RRDWIDTH setting with this means that each measurement gets 1 pixel.
If I set  TRENDSECONDS & RRDWIDTH, I get blocky graphs, presumably due to
there not being sufficient data at the normal resolution.  To fix that, I
*think* I need to:

1) resize all the the rrd files with 'rrdtool resize' - wrote a script
for that
2) alter server/etc/rrddefinitions.cfg to set the defaults for new rrd -
done that

Did I miss anything?

Thanks,

Ralph Mitchell

list Henrik Størner · Sat, 24 Dec 2011 00:02:34 +0100 ·
quoted from Ralph Mitchell
On 23-12-2011 23:59, Ralph Mitchell wrote:
The one day graph *would* look fine, but I kinda like the 3-day.

The "blocky" look I'm seeing comes from RRD generating the graph using
the best datasource to fit the size you're asking for.  By default, the
first data store contains 576 points at 5 minute intervals, which covers
2 days.  The second data store contains 576 point at 30 minute
intervals, which is 12 days.  Each of the 30-minute data points is
generated by averaging together 6 of the 5-minute data points.  If you
ask rrd to generate a 3 day graph, there are not enough points in the
first data store, so it uses the second store and each point on the
graph then covers more pixels.

It's the same effect as zooming in on a graph.  To fix it, I've resized
the existing RRDs to hold 864 data points, so there will be enough
fine-grain data to get a decent 3-day graph.
Right, forgot to mention that I've done something similar on the 
www.xymon.com site.

You can change it in "rrddefinitions.cfg", but it will not change any 
existing files - only newly created ones.


Regards,
Henrik
list Ralph Mitchell · Fri, 23 Dec 2011 18:11:53 -0500 ·
quoted from Henrik Størner
On Fri, Dec 23, 2011 at 6:02 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
On 23-12-2011 23:59, Ralph Mitchell wrote:
The one day graph *would* look fine, but I kinda like the 3-day.

The "blocky" look I'm seeing comes from RRD generating the graph using
the best datasource to fit the size you're asking for.  By default, the
first data store contains 576 points at 5 minute intervals, which covers
2 days.  The second data store contains 576 point at 30 minute
intervals, which is 12 days.  Each of the 30-minute data points is
generated by averaging together 6 of the 5-minute data points.  If you
ask rrd to generate a 3 day graph, there are not enough points in the
first data store, so it uses the second store and each point on the
graph then covers more pixels.

It's the same effect as zooming in on a graph.  To fix it, I've resized
the existing RRDs to hold 864 data points, so there will be enough
fine-grain data to get a decent 3-day graph.
Right, forgot to mention that I've done something similar on the
www.xymon.com site.

You can change it in "rrddefinitions.cfg", but it will not change any
existing files - only newly created ones.
OK, thanks.  That's what I was wondering - is there anything still compiled
in?  I guess that's a "not any more".

I've thrown together a script to resize the existing RRD files, seems to
work OK.  It just gets the RRA list from "rrdtool info", then loops through
resizing one at a time.  I'd post the script, but it's at work and I'm
not...  :-)   If anyone is interested, it shouldn't take too long to
re-invent.

Ralph Mitchell
list Henrik Størner · Sat, 24 Dec 2011 08:30:13 +0100 ·
quoted from Ralph Mitchell
On 24-12-2011 00:11, Ralph Mitchell wrote:
On Fri, Dec 23, 2011 at 6:02 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid
<mailto:user-ce4a2c883f75@xymon.invalid>> wrote:

    You can change it in "rrddefinitions.cfg", but it will not change
    any existing files - only newly created ones.


OK, thanks.  That's what I was wondering - is there anything still
compiled in?  I guess that's a "not any more".
Nope.
quoted from Ralph Mitchell
I've thrown together a script to resize the existing RRD files, seems to
work OK.  It just gets the RRA list from "rrdtool info", then loops
through resizing one at a time.  I'd post the script, but it's at work
and I'm not...  :-)   If anyone is interested, it shouldn't take too
long to re-invent.
You may want to look at the "rrdjig" tool also, if you are increasing the number of data points you keep in each RRD. The normal rrdtool "resize" command has some interesting "side effects"; e.g. if you increase the number of 5-minute-average datapoints from 2 days to e.g. 7 days and then try to view a graph showing between 2 and 7 days, then initially the graph will only show data for the last 2 days - because even though you resized the dataset in the RRD, it didn't populate the dataset with any data! rrdjig tries to do better than that.

https://lists.oetiker.ch/pipermail/rrd-developers/2010-March/003661.html


Regards,
Henrik