[rrd-users] Graphing based of specifc end time.

Michael Van Der Beek michael.van at antlabs.com
Thu Feb 9 03:03:44 CET 2012


Hi Rick,

Okay that --end works except for 1 graph 
For it reports the following
ERROR: start (1328730501) should be less than end (1328688001)

The command I'm using is 
rrdtool graph --slope-mode --start -6h --end 1328688001

That stumped me for a while why that error was happening.
That was the first graph command and it always generates wrongly, I didn't
not bother to look the other graphs which were more correct.

Until I realised that -6h is -6 hours from now.. not from the end time.
So now I think I need to modify the script so that the --start will have a value
of -6h (in seconds) from the end time seconds.

Then it should not generate an error.

Thanks for the pointer.

Regards,

Michael

-----Original Message-----
From: Rick Jones [mailto:rick.jones2 at hp.com] 
Sent: Thursday, 9 February, 2012 1:50 AM
To: Michael Van Der Beek
Cc: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] Graphing based of specifc end time.

On 02/07/2012 09:29 PM, Michael Van Der Beek wrote:
> Hi All,
>
> I've setup a way to collect logs and later import logs into an rrd database.
>
> Now lets say at the time of collection is 2pm.
>
> By the time (say 4pm) I return to the office and import the data into
> the rrd database.
>
> The graph when generated will show a time gape of between 4pm and 2pm
> (where the last data is seen).
>
> This is because the graph by default is the latest time.
>
> How do I specify to rrdgraph that I want to only show the graph up to
> the last time of data collection (2pm).

Presumably with the --end option?

rick jones



More information about the rrd-users mailing list