Xymon Mailing List Archive search

RRD and negative values

5 messages in this thread

list dOCtoR MADneSs · Mon, 26 Jan 2009 18:35:20 +0100 ·
Hi,

I wrote a test reporting voltages from my motherboard's sensors. Those
values are positives and negatives (+12V, -12V).
I use split NCV to get values in different RRD files, and almost everything
is OK, but I don't have any value for the negatives voltages. I added a -
before the numeric value, but I don't get any value in RRD file :
user at host:~$ rrdtool dump
~xymon/data/rrd/host/hardware,Negative_12V_volt.rrd  |head -50
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1232991020 </lastupdate> <!-- 2009-01-26 18:30:20 CET
-->

        <ds>
                <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> NaN </value>
                <unknown_sec> 20 </unknown_sec>
        </ds>

Could someone told me how to work with negative values ?
list Stef Coene · Mon, 26 Jan 2009 18:49:21 +0100 ·
quoted from dOCtoR MADneSs
On Monday 26 January 2009, user-d54077869176@xymon.invalid wrote:
Hi,

I wrote a test reporting voltages from my motherboard's sensors. Those
values are positives and negatives (+12V, -12V).
I use split NCV to get values in different RRD files, and almost everything
is OK, but I don't have any value for the negatives voltages. I added a -
before the numeric value, but I don't get any value in RRD file :
user at host:~$ rrdtool dump
~xymon/data/rrd/host/hardware,Negative_12V_volt.rrd  |head -50
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1232991020 </lastupdate> <!-- 2009-01-26 18:30:20 CET
-->

        <ds>
                <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> NaN </value>
                <unknown_sec> 20 </unknown_sec>
        </ds>

Could someone told me how to work with negative values ?
Make them positive and put them the rrd.
If you createt the graph, you can make them negative again.


Stef
list Daniel J McDonald · Mon, 26 Jan 2009 13:52:51 -0600 ·
quoted from Stef Coene
On Mon, 2009-01-26 at 18:35 +0100, user-d54077869176@xymon.invalid wrote:
Hi,

I wrote a test reporting voltages from my motherboard's sensors. Those
values are positives and negatives (+12V, -12V).
I use split NCV to get values in different RRD files, and almost everything
is OK, but I don't have any value for the negatives voltages. I added a -
before the numeric value, but I don't get any value in RRD file :
You need to run rrdtune to set the minimum.
rrdtool tune -i:lamda=-12 xymon/data/rrd/host/hardware,Negative_12V_volt.rrd

(I think that's the syntax).

Right now your minimum is set to zero.
quoted from Stef Coene

user at host:~$ rrdtool dump 
~xymon/data/rrd/host/hardware,Negative_12V_volt.rrd  |head -50
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1232991020 </lastupdate> <!-- 2009-01-26 18:30:20 CET
-->

        <ds>
                <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> NaN </value>
                <unknown_sec> 20 </unknown_sec>
        </ds>

Could someone told me how to work with negative values ?

list dOCtoR MADneSs · Mon, 26 Jan 2009 22:07:16 +0100 ·
On Mon, 26 Jan 2009 13:52:51 -0600, Daniel J McDonald
quoted from Daniel J McDonald
<user-290ce4e24e19@xymon.invalid> wrote:
On Mon, 2009-01-26 at 18:35 +0100, user-d54077869176@xymon.invalid wrote:
Hi,

I wrote a test reporting voltages from my motherboard's sensors. Those
values are positives and negatives (+12V, -12V).
I use split NCV to get values in different RRD files, and almost
everything
is OK, but I don't have any value for the negatives voltages. I added a
-
before the numeric value, but I don't get any value in RRD file :
You need to run rrdtune to set the minimum.
rrdtool tune -i:lamda=-12
xymon/data/rrd/host/hardware,Negative_12V_volt.rrd

(I think that's the syntax).

Right now your minimum is set to zero.

user at host:~$ rrdtool dump ~xymon/data/rrd/host/hardware,Negative_12V_volt.rrd  |head -50
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1232991020 </lastupdate> <!-- 2009-01-26 18:30:20
        CET
-->

        <ds>
                <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> NaN </value>
                <unknown_sec> 20 </unknown_sec>
        </ds>

Could someone told me how to work with negative values ?

Thank you for your help, your tips is just what I needed.
list Henrik Størner · Wed, 28 Jan 2009 12:02:50 +0000 (UTC) ·
quoted from dOCtoR MADneSs
In <e409c79311fbdfe0535ccedc3259e996 at localhost> <user-d54077869176@xymon.invalid> writes:
On Mon, 26 Jan 2009 13:52:51 -0600, Daniel J McDonald
<user-290ce4e24e19@xymon.invalid> wrote:
On Mon, 2009-01-26 at 18:35 +0100, user-d54077869176@xymon.invalid wrote:
Hi,

I wrote a test reporting voltages from my motherboard's sensors. Those
values are positives and negatives (+12V, -12V).
I use split NCV to get values in different RRD files, and almost
everything
is OK, but I don't have any value for the negatives voltages. I added a
-
before the numeric value, but I don't get any value in RRD file :
You need to run rrdtune to set the minimum.
rrdtool tune -i:lamda=-12
xymon/data/rrd/host/hardware,Negative_12V_volt.rrd

(I think that's the syntax).

Right now your minimum is set to zero.

user at host:~$ rrdtool dump 
~xymon/data/rrd/host/hardware,Negative_12V_volt.rrd  |head -50
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
        <step> 300 </step> <!-- Seconds -->
        <lastupdate> 1232991020 </lastupdate> <!-- 2009-01-26 18:30:20
        CET
-->

        <ds>
                <name> lambda </name>
                <type> GAUGE </type>
                <minimal_heartbeat> 600 </minimal_heartbeat>
                <min> 0.0000000000e+00 </min>
                <max> NaN </max>

                <!-- PDP Status -->
                <last_ds> UNKN </last_ds>
                <value> NaN </value>
                <unknown_sec> 20 </unknown_sec>
        </ds>

Could someone told me how to work with negative values ?

Thank you for your help, your tips is just what I needed.

The fix in Hobbit to always permit negative values has been
added for both the current development version, and the 4.2.3
update.


Regards,
Henrik