[rrd-users] Last value always nan

Michael Jürgens rrd at juergens.name
Tue Sep 4 17:37:27 CEST 2007


Alex van den Bogaerdt schrieb:
> On Tue, Sep 04, 2007 at 04:45:59PM +0200, Michael Jürgens wrote:
>

...

> Solution:
>
> Integer divide 1188916748 by your step size (60?), then multiply
> by the same amount.  The result is 1188916740. Use that as end time.
>



    > /usr/local/rrdtool/bin/rrdtool fetch
    > /home/mrtg/data/dolly.log4j.warn.rrd AVERAGE   -s 1188919920  -e
    > 1188919920
    >                             ds0                 ds1
    >
    > 1188919980: nan nan

    but

    > /usr/local/rrdtool/bin/rrdtool fetch
    > /home/mrtg/data/dolly.log4j.warn.rrd AVERAGE   -s 1188919919  -e
    > 1188919920
    >                             ds0                 ds1
    >
    > 1188919920: 0.0000000000e+00 0.0000000000e+00
    > 1188919980: nan nan

    and

    > /usr/local/rrdtool/bin/rrdtool fetch
    > /home/mrtg/data/dolly.log4j.warn.rrd AVERAGE   -s 1188919919  -e
    > 1188919919
    >                             ds0                 ds1
    >
    > 1188919920: 0.0000000000e+00 0.0000000000e+00

    So it should be "int(ts/60)*60-1"  - right?


regards,

Michael








More information about the rrd-users mailing list