This is a discussion on [rrd-users] Combining DS's and LAST within the RRD Users forums, part of the Networking and Network Related category; I'm trying to combing a number DS's to display totals. This all works well for AGV and MAX ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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_las t,+,+,....+ 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 |