<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 &quot;graph&quot;</div>
<div>- calc the 95pct for each &quot;graph&quot;</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     #   &lt;-- 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 &#39;V_Input95&#39; not DEF nor CDEF in VDEF &#39;V_total95&#39;<br>
</div><div><br></div><div>I cannot use a VDEF on VDEF&#39;s it seems... Suggestions? </div><div><br></div><div><br></div>-- <br>/Morten %-) 
</div></div>