[rrd-users] Re: FMAX, MIN, LAST with GAUGE data

Németh László Laszlo.Nemeth at netvisor.hu
Tue Jan 28 11:20:13 MET 2003


Hi,

the problem is that I do not know my measurement interval in advance.

It can be anything between 60s and 3600s and I could not find out how
to find out the first one at eg. 79s interval otherwise than this.

br,
Laszlo

-----Original Message-----
From: Stephan Harren [mailto:sh at abovenet.de]
Sent: Tuesday, January 28, 2003 10:55 AM
To: Németh László; rrd-users at list.ee.ethz.ch
Subject: Re: [rrd-users] Re: FMAX, MIN, LAST with GAUGE data


Wouldn't it be easier to make the timestamp divideable by sixty?

$normalized_timestamp=int($actual_timestamp/60)*60;

Best regards,

Stephan

> In Perl:
> RRDs::create( "clijobs.rrd", "--step",$perfloginterval,
> 	          "DS:jobs:GAUGE:$perfloginterval:U:U",
> 	          "RRA:AVERAGE:0.5:1:10" );
>
> my $info = RRDs::info("clijobs.rrd");
> my
> $firstMeas=$$info{last_update}+$$info{step}-$$info{'ds[jobs].unknown_sec'};
>
> then the first measurement should be done at $firstMeas.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list