[rrd-users] Problems with PREV in 1.2

This is a discussion on [rrd-users] Problems with PREV in 1.2 within the RRD Users forums, part of the Networking and Network Related category; I've just started trying to use RRDTool 1.2.0 with Cacti (0.8.6d) and have noticed that ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-06-2005
David Carmean
 
Posts: n/a
Default [rrd-users] Problems with PREV in 1.2


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@list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/rrd-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0