Xymon Mailing List Archive search

hobbit not adding negative values to rrd database

2 messages in this thread

list Hansi Tesarz · Sun, 28 Jan 2007 21:04:28 +0100 ·
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:    +XX XXXXXXXXX
Mail:   user-69c056db2544@xymon.invalid
Web:  www.htk.se
ICQ:   202-468-855
Light Can Twist as Well as Spin
list Jerry Yu · Sun, 28 Jan 2007 16:11:58 -0500 ·
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.
quoted from Hansi Tesarz

On 1/28/07, hansi tesarz <user-8f01f97ff6fb@xymon.invalid> 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:    +XX XXXXXXXXX
Mail:   user-69c056db2544@xymon.invalid
Web:  www.htk.se
ICQ:   202-468-855
Light Can Twist as Well as Spin