[Xymon] RRD change from 5 minutes to 1 minute
Scot Kreienkamp
Scot.Kreienkamp at la-z-boy.com
Wed Sep 23 23:06:51 CEST 2020
Hi SebA,
Sure, I can detail it out a bit more. I installed from the Terabithia RPM’s so the path to the config files may be different, but on my system it’s /etc/xymon/rrddefinitions.cfg. Here’s what mine looks like now (minus commented lines at the top):
[ifmib/60]
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 one is the default setup. You can change it, if you like.
[]
-s60
RRA:AVERAGE:0.5:1:3000
# 576 datapoints w/ 5 minute interval = 48 hours @ 5 min avg.
RRA:AVERAGE:0.5:5:576
# 576 datapoints w/ 6*5 minute averaged = 12 days @ 30 min avg.
RRA:AVERAGE:0.5:30:576
# 576 datapoints w/ 24*5 minute averaged = 48 days @ 2 hour avg.
RRA:AVERAGE:0.5:120:576
# 576 datapoints w/ 288*5 minute averaged = 576 days @ 1 day avg.
RRA:AVERAGE:0.5:1440:576
I added the following 2 lines:
-s60
RRA:AVERAGE:0.5:1:3000
The first is to change the step to 60 seconds, the second is to add another layer of data points. Since the step is now 60 seconds, the 1:3000 at the end of the line means 1 data point per step, and 3000 data points in this data set. So it works out to 1 data point every minute for 3000 minutes, or just over 2 days. After that the rest of the default RRA lines take over and roll up the data as they did before. The documentation for the step that I’ve seen shows the step with a space between like so: “-s 60”. That errors out on my system. It only works without the space, which has confounded me for years. I figured it out just by trying anything I could think of until I hit on removing the space.
For the RRD file sizes, it doesn’t appear that they were affected at all. They were originally 43k and are still 43k. As I recall RRD files are a fixed size as of the original creation time, so to make this take effect I had to delete all my existing RRD files in /var/lib/xymon/rrd and let xymon create them again with the new settings. I tried to migrate them but I wound up with RRD files that only had 10 minutes of content in them so it wasn’t worth the effort of migrating them.
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | • 734-384-6403 | | • 1-734-915-1444 | • Scot.Kreienkamp at la-z-boy.com
From: SebA <spah at syntec.co.uk>
Sent: Wednesday, September 23, 2020 1:57 PM
To: Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com>
Cc: xymon at xymon.com
Subject: Re: [Xymon] RRD change from 5 minutes to 1 minute
ATTENTION: This email was sent to La-Z-Boy from an external source. Be vigilant when opening attachments or clicking links.
Hi Scot,
Thanks for sharing, but I didn't follow exactly what you needed to change and where - maybe I could find out by digging a little, but I'm sure you could tell me faster!
Also, are you able to see how much larger the rrd files are, after your change? Or maybe you'd need to wait longer to see.
Kind regards,
SebA
On Wed, 23 Sep 2020 at 04:25, Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>> wrote:
Hi Ralph,
The documentation is wrong. I ended up figuring it out after several hours of trial and error. It shows -s 60 should work but the code doesn’t account for the space. It MUST be -s60 (without the space) or it will error out every time. I ended up adding RRA:AVERAGE:0.5:1:3000 to the existing default config which should cover slightly more than two days worth of 1 minute datapoints. That will give the 2 day graphs the detailed resolution I want to see, beyond 2 days the existing config is ok. And yes, you’re right about the existing data. I had to delete all my RRD’s and let xymon create them again and start populating them from scratch. I tried to do the RRD export and import but the changes resulted in an RRD that had no data anyway, so I just went the delete them all route. So far I have 24 hours of data. When I get past 48 hours I should know if there are any repercussions, but since I haven’t modified the existing RRA’s I don’t expect any.
Hopefully this will help someone else.
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | • 734-384-6403 | | • 1-734-915-1444 | • Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>
From: Ralph M <ralphmitchell at gmail.com<mailto:ralphmitchell at gmail.com>>
Sent: Tuesday, September 22, 2020 11:10 PM
To: Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>>
Cc: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] RRD change from 5 minutes to 1 minute
ATTENTION: This email was sent to La-Z-Boy from an external source. Be vigilant when opening attachments or clicking links.
You might be able to use rrdtune to alter the step value, but that may be just the tip of the iceberg. For example, what happens to existing data in the RRD? What about new RRDs created by Xymon? Do the graph definitions need to change for display? &c
Ralph Mitchell
On Mon, Sep 21, 2020 at 3:34 PM Scot Kreienkamp <Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>> wrote:
I run most of my tests every 60 seconds. Does anyone know how to change the RRD graph default to accept data every 1 minute instead of every 5 minutes?
Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | • 734-384-6403 | | • 1-734-915-1444 | • Scot.Kreienkamp at la-z-boy.com<mailto:Scot.Kreienkamp at la-z-boy.com>
www.la-z-boy.com<http://www.la-z-boy.com> | facebook.com/lazboy<http://facebook.com/lazboy> | twitter.com/lazboy<http://twitter.com/lazboy> | youtube.com/lazboy<http://youtube.com/lazboy>
[cid:image003.jpg at 01D691CB.ED66BC50]
This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon
_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto: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/20200923/a98171ee/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 2291 bytes
Desc: image003.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20200923/a98171ee/attachment.jpg>
More information about the Xymon
mailing list