[rrd-users] Re: problems summing many sources together

2006-06-10 Thread Georges Toth
> Granted, 0 is as good as any other number (including 3). Propose it. > Be prepared for Tobi to say "patches are welcome" :) :-)...I'm currently too busy with other things > If such an option would be there, hard wired zero would not be > good enough imho. > > If your goal is to meter bandwidt

[rrd-users] Re: problems summing many sources together

2006-06-09 Thread Alex van den Bogaerdt
On Fri, Jun 09, 2006 at 12:20:59AM +0200, Georges Toth wrote: > > > Also, is there no more efficient solution for doing this ? > > > > How much is 1 plus 2 plus unknown plus 4 plus 5 ? > > > > There is only one answer: unknown. > > Right. I just assumed that rrd would automatically translate unkn

[rrd-users] Re: problems summing many sources together

2006-06-09 Thread Georges Toth
> > (...) > This creates 44 extra arrays containing ranges. > > > > CDEF:intot=in1,UN,0,in1,IF,in1,UN,0,in1,IF,in2,UN,0,in2,IF,in3,UN,0,in3,I > >F,in4,UN,0,in4,IF,in5,UN,0,in5,IF,in6,UN,0,in6,IF,in7,UN,0,in7,IF,in8,UN,0 > >,in8,IF,in9,UN,0,in9,IF,in10,UN,0,in10,IF,in11,UN,0,in11,IF,in12,UN,0,in12 >

[rrd-users] Re: problems summing many sources together

2006-06-09 Thread Georges Toth
> This seems alot cleaner to me than doing all the CDEFs. This will not > work, of course, if you don't use routers2.cgi for your graph > creation. I'm using rrdtool with some custom scripts, so that is not a option for me. But thanks for your help -- regards, Georges Toth -- Unsubscribe mail

[rrd-users] Re: problems summing many sources together

2006-06-08 Thread Alex van den Bogaerdt
On Wed, Jun 07, 2006 at 06:19:52PM +0200, Georges Toth wrote: > First one is to define 21 times this: > CDEF:in_1=in1,UN,0,in1,IF > CDEF:out_1=out1,UN,0,out1,IF > and then sum it like this: > CDEF:intot=in_1,in_2,+,in_3,+,in_4,+,in_5,+,in_6,+,in_7,+,in_8,+,in_9, > +,in_10,+,in_11

[rrd-users] Re: problems summing many sources together

2006-06-07 Thread MrPaul
On 6/7/06, Georges Toth <[EMAIL PROTECTED]> wrote: > Also, is there no more efficient solution for doing this ? > > > Thnx > > -- > > regards, > Georges Toth I'm getting the average of 5137 interfaces using routers2.cgi. The only requirement was to add the following like to the MRTG config file(s

[rrd-users] Re: problems summing many sources together

2006-06-07 Thread Georges Toth
> you need to add an IF directive there which returns data or zero if undefined: > | CDEF:mycdef=mydef,UN,0,mydef,IF Thanks a lot ! That did the trick :-). I tried two different approaches. First one is to define 21 times this: CDEF:in_1=in1,UN,0,in1,IF CDEF:out_1=out1,UN,0,out1,

[rrd-users] Re: problems summing many sources together

2006-06-07 Thread Fabien Wernli
On Wed, Jun 07, 2006 at 05:26:08PM +0200, Georges Toth wrote: > Which "looks" fine if all the soruces contain data. > But if some sources don't contain data, I just get NAN. you need to add an IF directive there which returns data or zero if undefined: | CDEF:mycdef=mydef,UN,0,mydef,IF which yie