[rrd-users] Problems with PREV in 1.2

David Carmean david.carmean at netapp.com
Fri May 6 02:40:02 MEST 2005


I've just started trying to use RRDTool 1.2.0 with Cacti (0.8.6d) and have 
noticed that trying to use PREV in my CDEFs can cause rrdtool to coredump 
in at least a couple ways.

First, attempting to use PREV more than once in a graph specification causes 
a segfault every time:

    rrdtool graph - \
    --imgformat=PNG \
    --start=1115337420 \
    --end=1115337810 \
    --title="Manual test" \
    --height=200 \
    --width=500 \
    --alt-autoscale-max \
    --lower-limit=0 \
    --vertical-label="" \
    DEF:a="5sec-1var.rrd":a:AVERAGE \
    CDEF:ca=PREV\(a\) \
    CDEF:cb=PREV\(ca\) \
    AREA:a#00FF00:"val \n"  

This fails with a segfault for rrdtool v 1.2.0, but works for version 1.0.48. 
If I take out the second PREV call, it works.

Secondly, using PREV on any but the first DS in an RRA seems to cause a segfault:

    rrdtool graph - \
    --imgformat=PNG \
    --start=1115337420 \
    --end=1115337810 \
    --title="Manual test" \
    --height=200 \
    --width=500 \
    --alt-autoscale-max \
    --lower-limit=0 \
    --vertical-label="" \
    DEF:a="5sec-1var.rrd":a:AVERAGE \
    DEF:b="5sec-1var.rrd":a:LAST \
    CDEF:ca=PREV\(b\) \		########## Note DEF 'b'	
    AREA:a#00FF00:"val \n"  \
    LINE1:b#0000FF:"val \n"  \

This does not fail with "PREV(a)", nor does it fail with rrdtool 1.0.48.

Has anyone else seen these failures yet?   (So far I've only had time to 
try this on one Solaris 9 system. )

Thanks.

-- 
David Carmean						Network Appliance, Inc
+1-408-822-6565 (ph)					495 E. Java Drive
+1-408-822-4577 (fax)					Sunnyvale, CA  94089

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list