<div dir="ltr">you want to know what the a b c is that was the max, sorry I misread.<div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 5:23 PM, David Thornton <span dir="ltr"><<a href="mailto:northdot9@gmail.com" target="_blank">northdot9@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">first define the maxes for each host:<div><br></div><div><a href="https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html" target="_blank">https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html</a><br></div><div><br></div><div>then you can use the "if then else" on each var.<div><br></div><div><a href="https://oss.oetiker.ch/rrdtool/tut/rpntutorial.en.html" target="_blank">https://oss.oetiker.ch/rrdtool/tut/rpntutorial.en.html</a><br></div><div><br></div><div>I've done this before. You write a script that has an "if then else" for each host in sequence:</div><div><br></div><div>something like this;</div><div><br></div><div>DEF:a=router1.rrd:link1in:MAX<br></div><div>DEF:x=routerx.rrd:link1in:MAX<br></div><div>...</div><div><br></div><div>if a > b , a, b</div><div>if x > (x-1) , x , (x-1)</div><div>...</div><div><br></div><div>I wrote the script long ago,</div><div>and my rpn is tenuous at best :(</div><div><br></div><div>and ..x can't get too big... I think I was getting seg faults at like 50 hosts.</div><div><br></div><div>David</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 25, 2015 at 5:04 PM, Aaron Thomas Holt <span dir="ltr"><<a href="mailto:Aaron.Holt@colorado.edu" target="_blank">Aaron.Holt@colorado.edu</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>I currently have a legend formatted like a table like the one below:</div><div><br></div><div> min max average</div><div>node01 123 123 123</div><div>...</div><div>nodeNN 123 999 123 </div><div><br></div><div>I would like a line that displays the maximum for all nodes that looks something like what follows:</div><div><br></div><div>overall max: 999, node NN</div><div><br></div><div><div> min max average</div><div>node01 123 123 123</div><div>...</div><div>nodeNN 123 999 123 </div></div><div><br></div><div>Looking at the RPN documentation it looks possible to find the max value with a CDEF, but is there a way to find the associated node as well?</div><div><br></div><div>Thanks,</div><div>Aaron</div></div>
<br></div></div>_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" rel="noreferrer" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>