[rrd-users] DS Gauge or Absolute issue

Masood Ahmad Shah masood at nexlinx.net.pk
Mon Nov 26 13:10:45 CET 2007

I'm trying to add GAUGE or ABSOLUTE value. But it is being displayed UNKN.
Here is output of "rrdtool fetch"...

ds[partition].type = "ABSOLUTE"
ds[partition].minimal_heartbeat = 600
ds[partition].min = 1.0000000000e+00
ds[partition].max = 2.5000000000e+04
ds[partition].last_ds = "UNKN"
ds[partition].value = 2.4270785287e+02
ds[partition].unknown_sec = 0

If I change DS type from GAUGE,ABSOLUTE to DERIVE or COUNTER it worked fine.
But I need to store GAUGE or ABOSLUTE because the value I'm going to store
is static or very rare chances to being changed. 

Here is my perl code which I'm using to update counters..

                                        if (! -e "$rrd/$classname2.rrd")
                                        print "creating rrd database for
$classname2 interface...\n";
                                        RRDs::create "$rrd/$classname2.rrd",
                                        "-s 300",

                # insert values into rrd
                RRDs::update "$rrd/$classname2.rrd",
                        "-t", "in:out:partition",


Masood Ahmad Shah

More information about the rrd-users mailing list