<div dir="ltr"><div>I just received an anonymous mail response to the above which boils down to the following two lines:</div><div><br></div><div>CDEF:C_95pct_MAX=D_1,POP,V_Input_95,V_Output_95,MAX</div><div>VDEF:V_95pct_MAX=C_95pct_MAX,MAXIMUM</div>
<div><br></div><div>which when merged into my previous code seems to do the trick.</div><div><br></div><div>Thanks!</div><div><br></div><div>-- <br></div><div><div>/Morten %-)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jul 28, 2014 at 12:18 PM, Morten Guldager <span dir="ltr"><<a href="mailto:morten.guldager@gmail.com" target="_blank">morten.guldager@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div>I have two network interfaces graphed, they should be 95 pct billed as one. </div><div><br></div><div>Algorithm should be: </div><div>- sum all inputs as one and all outputs as another "graph"</div>
<div>- calc the 95pct for each "graph"</div><div>- finally take the highest of those two.</div><div><br></div>I need to make a HRULE showing the highest 95 percentile, input or output.<div><br></div><div>I have tried: (a bit silly names around, they are machine generated)</div>
<div><br></div><div><div>DEF:D_1=interface-12.rrd:InOctets:AVERAGE</div><div>DEF:D_2=interface-11.rrd:InOctets:AVERAGE</div><div>CDEF:C_Input=0,D_1,+,D_2,+,8,*</div><div>VDEF:V_Input_AVERAGE=C_Input,AVERAGE</div><div>VDEF:V_Input_MAXIMUM=C_Input,MAXIMUM</div>
<div>LINE2:C_Input#00FF00:Input </div><div>GPRINT:V_Input_AVERAGE:AVERAGE %6.2lf%s</div><div>GPRINT:V_Input_MAXIMUM:MAXIMUM %6.2lf%s\\l</div><div><br></div><div>DEF:D_3=interface-12.rrd:OutOctets:AVERAGE</div>
<div>
DEF:D_4=interface-11.rrd:OutOctets:AVERAGE</div><div>CDEF:C_Output=0,D_3,+,D_4,+,8,*</div><div>VDEF:V_Output_AVERAGE=C_Output,AVERAGE</div><div>VDEF:V_Output_MAXIMUM=C_Output,MAXIMUM</div><div>LINE2:C_Output#0000FF:Output </div>
<div>GPRINT:V_Output_AVERAGE:AVERAGE %6.2lf%s</div><div>GPRINT:V_Output_MAXIMUM:MAXIMUM %6.2lf%s\\l</div><div><br></div><div>VDEF:V_Input95=C_Input,95,PERCENT</div><div>VDEF:V_Output95=C_Output,95,PERCENT</div><div>VDEF:V_total95=V_Input95,V_Output95,MAX # <-- this one fails!</div>
<div>HRULE:V_Input95#009900:Input 95PCT</div><div>HRULE:V_Output95#000099:Output 95PCT</div><div>HRULE:V_total95#FF0000:total 95PCT</div><div><br></div><div>It fails with: variable 'V_Input95' not DEF nor CDEF in VDEF 'V_total95'<br>
</div><div><br></div><div>I cannot use a VDEF on VDEF's it seems... Suggestions?</div></div></div></blockquote></div></div></div>