Xymon Mailing List Archive search

4.3.0 RC1 - rrddefinitions.cfg suggestion

5 messages in this thread

list Brian Majeska · Fri, 4 Feb 2011 09:55:47 -0800 ·
Henrik,

Would it be possible to add support for other rrdtool create options
in the rrddefinitions.cfg file?

I'd like to be able to specify a different step for certain tests.  Like

[http]
        --step 60
        RRA:AVERAGE:0.5:1:1440
        RRA:AVERAGE:0.5:5:576
        RRA:AVERAGE:0.5:30:576
        RRA:AVERAGE:0.5:120:576
        RRA:AVERAGE:0.5:1440:576

This would let me zoom in on the graph down to the minute which helps
in quickly identifying when problems start and you have to dig through
mountains of logs for the precise moment, also I've found when using
drraw to create aggregated graphs for dashboards it gives it more of
an up to the minute view of your systems rather then a 5 minute lag
time.

I use to do this by creating the rrds manually on the 4.2.x code base,
but it would be great if I could just specify it in the
rrddefinitions.cfg.  The rrd step is just one of those items you can't
tune after its been created without dumping to xml first, creating a
new rrd container, then importing the data back.

--
Brian Majeska
list Henrik Størner · Sat, 5 Feb 2011 10:30:02 +0000 (UTC) ·
quoted from Brian Majeska
In <AANLkTimtKTN84jD=user-29f8e06a2f30@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:
Would it be possible to add support for other rrdtool create options
in the rrddefinitions.cfg file?
I'd like to be able to specify a different step for certain tests.  
The RC1 allows you to add any "rrdcreate" option you like, except
the --step/-s options since this is always provided by Xymon.

I've enhanced the code, so if there is a --step/-s option in the
definitions you have listed in rrddefinitions.cfg, it will be
used instead of the normal "--step 300".


Regards,
Henrik
list Brian Majeska · Mon, 7 Feb 2011 10:03:56 -0800 ·
Found a bug.  I got the following error in the rrd-status.log when
testing the '--step 60' option:

2011-02-07 09:40:48 RRD error creating
/local/xymon/data/rrd/sha.ipac.caltech.edu/tcp.http.sha.ipac.caltech.edu,.rrd:
unknown option '--step 60'

However it Does work when I use: -s 60

Thank you for adding this feature!

--
Brian Majeska
quoted from Henrik Størner


On Sat, Feb 5, 2011 at 2:30 AM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
In <AANLkTimtKTN84jD=user-29f8e06a2f30@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:
Would it be possible to add support for other rrdtool create options
in the rrddefinitions.cfg file?
I'd like to be able to specify a different step for certain tests.
The RC1 allows you to add any "rrdcreate" option you like, except
the --step/-s options since this is always provided by Xymon.

I've enhanced the code, so if there is a --step/-s option in the
definitions you have listed in rrddefinitions.cfg, it will be
used instead of the normal "--step 300".


Regards,
Henrik

list Henrik Størner · Mon, 7 Feb 2011 21:19:12 +0000 (UTC) ·
quoted from Brian Majeska
In <user-d0fb06a765c8@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:
Found a bug.  I got the following error in the rrd-status.log when
testing the '--step 60' option:
2011-02-07 09:40:48 RRD error creating

/local/xymon/data/rrd/sha.ipac.caltech.edu/tcp.http.sha.ipac.caltech.edu,.r=
rd:
quoted from Brian Majeska
unknown option '--step 60'
However it Does work when I use: -s 60
Could you check if your "rrdcreate" command supports the "--step"
option ? Xymon just passes this verbatim to the rrdtool library,
which uses the same option syntax as the command line tools.
So this error message actually comes from the RRDtool library.


Regards,
Henrik
list Brian Majeska · Tue, 8 Feb 2011 08:04:40 -0800 ·
Yes, my rrdtool create works.  Let me know if you need me to
test/check anything else?

# rpm -qa | grep rrdtool
rrdtool-1.2.27-3.el5
rrdtool-1.2.27-3.el5
rrdtool-perl-1.2.27-3.el5

# rrdtool version
RRDtool 1.2.27  Copyright 1997-2008 by Tobias Oetiker <user-645e379b3ab6@xymon.invalid>

#  rrdtool create temperature.rrd --step 60 \
DS:temp:GAUGE:600:-273:5000 \
RRA:AVERAGE:0.5:1:1200
# rrdtool info temperature.rrd
filename = "temperature.rrd"
rrd_version = "0003"
step = 60
last_update = 1297180864
ds[temp].type = "GAUGE"
ds[temp].minimal_heartbeat = 600
ds[temp].min = -2.7300000000e+02
ds[temp].max = 5.0000000000e+03
ds[temp].last_ds = "UNKN"
ds[temp].value = 0.0000000000e+00
ds[temp].unknown_sec = 4
rra[0].cf = "AVERAGE"
rra[0].rows = 1200
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0

--
Brian Majeska
quoted from Henrik Størner


On Mon, Feb 7, 2011 at 1:19 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
In <user-d0fb06a765c8@xymon.invalid> Brian Majeska <user-9d2a2209229f@xymon.invalid> writes:
Found a bug.  I got the following error in the rrd-status.log when
testing the '--step 60' option:
2011-02-07 09:40:48 RRD error creating
/local/xymon/data/rrd/sha.ipac.caltech.edu/tcp.http.sha.ipac.caltech.edu,.r=
rd:
unknown option '--step 60'
However it Does work when I use: -s 60
Could you check if your "rrdcreate" command supports the "--step"
option ? Xymon just passes this verbatim to the rrdtool library,
which uses the same option syntax as the command line tools.
So this error message actually comes from the RRDtool library.


Regards,
Henrik