[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] hobbit not adding negative values to rrd database



If I recall correctly, I believe rrd/do_temperature.c assumes all numbers
are positive integers. Negative numbers and floating-point numbers will
confuse it enough to fail to parse the input properly.

On 1/28/07, hansi tesarz <hansi.tesarz (at) gmail.com> wrote:

Hi I have a temperature monitor for outside temperature.

i cant get it to work when the temperature is negative.

the rrdtool reports this
<rrd>
        <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1170011401 </lastupdate> <!-- 2007-01-28 20:10:01 CET
-->

        <ds>
                <name> Utetemp </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> -4.0000000000e+01 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> 4.0000000000e+00 </value>
                <unknown_sec> 0 </unknown_sec>
        </ds>


if i send positive values it gets updated but when it is negative nothing happens.

any ideas?

Regards

- Hansi


-- Hansi Tesarz Tjäderstigen 7 142 63 Trångsund Tel: +46 708611103 Mail: hansi (at) htk.se Web: www.htk.se ICQ: 202-468-855 Light Can Twist as Well as Spin

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk