[rrd-users] Re: Problem in feeding rrd with external data

Stephan Knabe sknabe at ifh.de
Tue Feb 24 11:52:15 MET 2004


On Fri, 20 Feb 2004 rrd at vandyke.sytes.net wrote:

> Can someone post a script to help w/ this.  I'm having the same issue.  I
> want my integers to be in the datebase, not the "extra calculation".
>

> > Make sur that your update happens exactly (up to the second) at the
> > times specified in your rrd. If needed you can 'fake' a timestamp for
> > this by some simple integer calculation.
> > Otherwise rrdtool does by itself some extra calculation on your data.
> >

I use this with Perl:
########## Build the Timestamp,
# this is necessary for storing integers
use integer;
$timestamp=$INTERVAL * (time()/$INTERVAL);
no integer;


... and this with zsh:
TIME=`date +%s`
TIMESTAMP=`echo "$INTERVAL * ( ( $TIME -$INTERVAL ) / $INTERVAL )"|bc`

regards

Stephan Knabe

--
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