first define the maxes for each host:

https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html

then you can use the "if then else" on each var.

https://oss.oetiker.ch/rrdtool/tut/rpntutorial.en.html

I've done this before. You write a script that has an "if then else" for
each host in sequence:

something like this;

DEF:a=router1.rrd:link1in:MAX
DEF:x=routerx.rrd:link1in:MAX
...

if a > b , a, b
if x > (x-1) , x , (x-1)
...

I wrote the script long ago,
and my rpn is tenuous at best :(

and ..x can't get too big... I think I was getting seg faults at like 50
hosts.

David


On Thu, Jun 25, 2015 at 5:04 PM, Aaron Thomas Holt <[email protected]>
wrote:

> Hi all,
>
> I currently have a legend formatted like a table like the one below:
>
>                min    max    average
> node01   123    123         123
> ...
> nodeNN  123    999         123
>
> I would like a line that displays the maximum for all nodes that looks
> something like what follows:
>
> overall max: 999, node NN
>
>               min    max    average
> node01  123    123         123
> ...
> nodeNN  123   999         123
>
> 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?
>
> Thanks,
> Aaron
>
> _______________________________________________
> rrd-users mailing list
> [email protected]
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to