[rrd-users] RPN for max of list of nodes

David Thornton northdot9 at gmail.com
Thu Jun 25 23:26:07 CEST 2015


you want to know what the a b c is that was the max, sorry I misread.

David

On Thu, Jun 25, 2015 at 5:23 PM, David Thornton <northdot9 at gmail.com> wrote:

> 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 <
> Aaron.Holt at colorado.edu> 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
>> rrd-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150625/2a0b3c55/attachment.html>


More information about the rrd-users mailing list