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

Fabien Wernli wernli at in2p3.fr
Wed Jun 7 17:37:29 MEST 2006


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 yields in your case

| CDEF:mycdef=mydef00,UN,0,mydef00,IF,
|             mydef01,UN,0,mydef01,IF,
| [...]
|             mydef99,UN,0,mydef99,IF,
|             +,
|             +,
| [...]
|             +
             

--
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