[rrd-users] Correct CDEF to get the spam count right?

Erik de Mare erik at oezie.org
Wed Jan 31 20:33:00 CET 2007


hi Vincent,

VDEF's aren't meant to make graphs, the are for aditional info in the 
legenda. VDEF's only return 1 value, like maximum value of the period 
graphed, of the total of that period. so for the graph you still need 
the CDEF's.

mvg,

Erik de Mare

rrd-users at lists.oetiker.ch wrote:
> On Wed, 31 Jan 2007, erik wrote:
> 
>> hi,
>>
>> are you graphing 2 days of data? (172800 = 2 days)
>>
>> and what version are you using of rrdtool, if you use 1.2.x you can 
>> add VDEF's instead of CDEF's
>> example: VDEF:vdef1=def1,TOTAL 
>> (http://oss.oetiker.ch/rrdtool/doc/rrdgraph_rpn.en.html)
>>
>> mvg,
>> Erik
>>
> 
> Erik,
> 
> Thanks for the advice, Now the number is much accurate for 
> Blocked_SPAM,Passed_CLEAN except Blocked_BANNED. Another changes I 
> noticed is that the graph is not in wave/pulse shap anymore, it is a 
> straight horizontal smooth graph, any idea?
> 
> Debug lines as:
> 
> DEF:def0=_star/Blocked_BANNED.rrd:hits:AVERAGE
> VDEF:cdef0=def0,TOTAL AREA:cdef0#ff0000:Blocked BANNED
> GPRINT:cdef0:Total\:%5.1lf msgs
> 
> DEF:def1=_star/Blocked_INFECTED.rrd:hits:AVERAGE VDEF:cdef1=def1,TOTAL
> STACK:cdef1#8e2323:Blocked INFECTED GPRINT:cdef1:Total\:%5.1lf msgs
> 
> DEF:def2=_star/Blocked_SPAM.rrd:hits:AVERAGE VDEF:cdef2=def2,TOTAL
> STACK:cdef2#ffff00:Blocked SPAM GPRINT:cdef2:Total\:%5.1lf msgs
> 
> DEF:def3=_star/Passed_CLEAN.rrd:hits:AVERAGE VDEF:cdef3=def3,TOTAL
> STACK:cdef3#00ff00:Passed CLEAN GPRINT:cdef3:Total\:%5.1lf msgs
> 
> Vincent
> http://bl0g.blogdns.com



More information about the rrd-users mailing list