[rrd-users] Combining DS's and LAST
Steven Hartland
killing at multiplay.co.uk
Fri Sep 28 04:17:48 CEST 2007
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 at multiplay.co.uk.
More information about the rrd-users
mailing list