[rrd-users] Combining DS's and LAST

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


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-28-2007
Steven Hartland
 
Posts: n/a
Default [rrd-users] Combining DS's and LAST

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0