[Xymon] rrdfetch interval changing

ROZEK Michal (Prestataire) michal.rozek.externe at cnp.fr
Wed Dec 18 10:20:44 CET 2013


Thank You for the info. I actually did that as You said…
In my case the interval was as follows:

5 mins for last 48h
30 mins for last 10 days
2h for the last 36 days
1 day for the rest


De : Jeremy Laidman [mailto:jlaidman at rebel-it.com.au]
Envoyé : mardi 17 décembre 2013 23:51
À : ROZEK Michal (Prestataire)
Cc : Xymon at xymon.com
Objet : Re: [Xymon] rrdfetch interval changing

The rrd file contains 5-minute data only going back so far (typically 576 samples, or 48 hours).  If you ask for data from before that point in time, rrdtool will switch to the next interval of consolidated data to give you the earlier data points you requested.  Try setting your start time to "-1d", and you should see 5-minute samples.  For example, the difference between 2 days and 3 days:

$ rrdtool fetch disk,root.rrd AVERAGE -r 300 -s -2d -e now|tail -5
1387319100: 8.0000000000e+01 7.8994000000e+05
1387319400: 8.0000000000e+01 7.8994000000e+05
1387319700: nan nan
1387320000: nan nan
1387320300: nan nan
$ rrdtool fetch disk,root.rrd AVERAGE -r 300 -s -3d -e now|tail -5
1387314000: 8.0000000000e+01 7.8994000000e+05
1387315800: 8.0000000000e+01 7.8994000000e+05
1387317600: 8.0000000000e+01 7.8994000000e+05
1387319400: 8.0000000000e+01 7.8994000000e+05
1387321200: nan nan

The interval for -2d is 300s; for -3d is 1800s.  In fact, the "-r" is probably being over-ridden by the sample interval of the consolidated data being requested.

J


On 17 December 2013 22:35, ROZEK Michal (Prestataire) <michal.rozek.externe at cnp.fr<mailto:michal.rozek.externe at cnp.fr>> wrote:
Hi guys,

I am trying to fetch disk usage data from the RRD file disk,projets,my,home.rrd with the resolution/interval of 5minutes:

rrdtool fetch disk,projets,my,home.rrd AVERAGE -r 300 -s 1371867766 -e 1387279723 | awk '{printf("%s|", strftime("%Y %b %d",$1)); printf("%s|", strftime("%H:%M:%S",$1)); printf("%.2f\n",$2)}'

The start date is 06.2013 and the end date is 17.12.2013
Unfortunately I receive data with interval of one day:

[..]
Date:              Time:       % Busy:
2013 Dec 10|01:00:00|10.00
2013 Dec 11|01:00:00|10.00
2013 Dec 12|01:00:00|10.00
2013 Dec 13|01:00:00|10.00
2013 Dec 14|01:00:00|10.00
2013 Dec 15|01:00:00|10.00
2013 Dec 16|01:00:00|10.00
2013 Dec 17|01:00:00|10.00


How to change it ? The “-r 300” option doesn’t work apparently…

Je reste à votre disposition pour tout complément d'informations. Cordialement.
Regards / Z poważaniem / تحية خالصة / 敬礼

Michal ROZEK
CDS Ingénierie UNIX
Société Blue consulting
Tél : 01.42.18.69.42
michal.rozek.externe at cnp.fr<mailto:michal.rozek.externe at cnp.fr>


Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.

*****

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.

_______________________________________________
Xymon mailing list
Xymon at xymon.com<mailto:Xymon at xymon.com>
http://lists.xymon.com/mailman/listinfo/xymon


Ce message (et toutes ses pieces jointes eventuelles) est confidentiel et etabli a l'intention exclusive de ses destinataires.
Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est
interdite, sauf autorisation expresse.
L'internet ne permettant pas d'assurer l'integrite de ce message, CNP Assurances et ses filiales declinent toute responsabilite
au titre de ce message, s'il a ete altere, deforme ou falsifie.

*****

This message and any attachments (the "message") are confidential and intended solely for the addressees.
Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration.
Neither CNP Assurances nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131218/4a476033/attachment.html>


More information about the Xymon mailing list