[prev in list] [next in list] [prev in thread] [next in thread]
List: rrd-developers
Subject: [rrd-developers] new operand on rrdgraph CDEFs
From: garana () uolsinectis ! com ! ar (Gonzalo Augusto Arana Tagle)
Date: 2002-06-19 16:04:21
Message-ID: 3D10AB85.B4941B77 () uolsinectis ! com ! ar
[Download RAW message or body]
Hi there,
I just wanted to share a patch to rrdtool-1.0.38 which adds a new
operator: PREV(vname).
It allows, for instance to filter data in many ways.
The simplest:
NOW=`date +%s`
./rrdtool graph test.png --start `echo "$NOW-86400" | bc` --width 800
--height 600 \
DEF:in=test2.rrd:CPULoad:AVERAGE \
LINE1:in#007700:in \
'CDEF:prev1=PREV(in)' \
'CDEF:diff1=in,PREV(in),-,UN,1,in,PREV(in),-,IF' \
'CDEF:diff2=in,PREV(in),-' \
LINE1:prev1#000077:'in prev' \
LINE1:diff1#770000:'in diff'
It would be great if this patch is to be applied in future releases of
rrdtool.
Any feedbacks will be welcomed,
--
Gonzalo A. Arana Tagle
Lider de Proyectos - Ingenieria
UOL-Sinectis
Florida 537 Piso 6, Buenos Aires, Argentina
+54-11-4321-9110 ext 2544
http://www.uolsinectis.com
-- Attached file removed by Listar and put at URL below --
-- Type: text/plain
-- Size: 3k (3587 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/rrdtool-1.0.38-extension.prev.patch
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic