[rrd-users] Re: Some values become NaN...

Alex van den Bogaerdt alex at ergens.op.HET.NET
Thu Jul 27 01:41:28 MEST 2000


Michael Bischof wrote:
> Hi,
> 
> I wrote a script that updates every 5 Minute a rrdtool database...
> From time to time some inserted values become NaN ???

The strange thing is that there are not enough NaN ...

> Here is a dump of the rrdtool database:
[snip]

> Here you can see when I've inserted which values:

> [26.07.2000 23:21:27] N:1700217451:3249272098
> [26.07.2000 23:26:28] N:1853471652:3464823810

5 minutes and 1 second apart.  This is 301 seconds


> [27.07.2000 00:01:28] N:2880211733:539269065
> [27.07.2000 00:06:29] N:3008434609:701455961

idem


> [27.07.2000 00:21:28] N:3408894938:1223368486
> [27.07.2000 00:26:29] N:3535319263:1393375162

and idem

> ---rrdtool database---
> ./rrdtool create test.rrd \
>                     DS:inp:COUNTER:300:0:U \
>                     DS:out:COUNTER:300:0:U \

You ask for a heart beat counter of 300.  This means that there
should be an update every 300 seconds.  If you plan to update every
5 minutes you should use another (higher) value for heartbeat.
If you use a heartbeat of 300, all three updates above should fail AFAIK.
Only one does.

One small remark:  Please use the date format that is used in the
rrdtool dump.  This is why:
   [alex at home /tmp/test]$ date -d '26.07.2000 23:45:00' +%s
   date: invalid date `26.07.2000 23:45:00'

   [alex at home /tmp/test]$ date -d '2000-07-26 23:45:00' +%s
   964647900

You'd make life more easy for all who want to help you ... 

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

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