[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rrd-users
Subject:    [rrd-users] Combining DS's and LAST
From:       "Steven Hartland" <killing () multiplay ! co ! uk>
Date:       2007-09-28 2:17:48
Message-ID: 068c01c80175$c400d750$b6db87d4 () multiplay ! co ! uk
[Download RAW message or body]

I'm trying to combing a number DS's to display totals. This all works well
for AGV and MAX but LAST always returns nan.

Here's the gist of what I have atm:-

DEF:src1_avg=dbfile1:servers:AVERAGE
DEF:src1_last=dbfile1:servers:LAST
DEF:src1_max=dbfile1:servers:MAX
DEF:src2_avg=dbfile2:servers:AVERAGE
DEF:src2_last=dbfile2:servers:LAST
DEF:src2_max=dbfile2:servers:MAX
...
DEF:srcX_avg=dbfileX:servers:AVERAGE
DEF:srcX_last=dbfileX:servers:LAST
DEF:srcX_max=dbfileX:servers:MAX
CDEF:total_agv=src1_avg,src2_avg,.....,srcX_avg,+,+,....+
CDEF:total_max=src1_max,src2_max,.....,srcX_max,+,+,....+
CDEF:total_last=src1_last,src2_last,.....,srcX_last,+,+,....+
VDEF:vt_total_last=servers_total_last,LAST
VDEF:vt_total_avg=servers_total_avg,AVERAGE
VDEF:vt_total_max=servers_total_max,MAXIMUM
GPRINT:vt_total_last:%10.0lf
GPRINT:vt_total_avg:%10.0lf
GPRINT:vt_total_max:%10.0lf

I tried checking for undef before doing the sum but that just resulted in
a 0 last instead of nan.

I'm sure this must be possible anyone got any tips?

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or \
entity to whom it is addressed. In the event of misdirection, the recipient is \
prohibited from using, copying, printing or otherwise disseminating it or any \
information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone \
+44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic